aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js3
-rw-r--r--view/js/mod_articles.js9
2 files changed, 11 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js
index ddd876689..c39d6c84c 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -439,8 +439,9 @@ function NavUpdate() {
if($('#live-display').length) { src = 'display'; liveUpdate(); }
if($('#live-search').length) { src = 'search'; liveUpdate(); }
// if($('#live-cards').length) { src = 'cards'; liveUpdate(); }
+ // if($('#live-articles').length) { src = 'articles'; liveUpdate(); }
- if($('#live-photos').length || $('#live-cards').length) {
+ if($('#live-photos').length || $('#live-cards').length || $('#live-articles').length ) {
if(liking) {
liking = 0;
window.location.href=window.location.href;
diff --git a/view/js/mod_articles.js b/view/js/mod_articles.js
new file mode 100644
index 000000000..8b31c0f52
--- /dev/null
+++ b/view/js/mod_articles.js
@@ -0,0 +1,9 @@
+$(document).ready( function() {
+ $(".autotime").timeago();
+
+ /* autocomplete @nicknames */
+ $(".comment-edit-form textarea").editor_autocomplete(baseurl+"/acl?f=&n=1");
+ /* autocomplete bbcode */
+ $(".comment-edit-form textarea").bbco_autocomplete('bbcode');
+
+}); \ No newline at end of file