aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js3
-rw-r--r--view/js/mod_articles.js9
-rw-r--r--view/pdl/mod_articles.pdl8
3 files changed, 19 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
diff --git a/view/pdl/mod_articles.pdl b/view/pdl/mod_articles.pdl
new file mode 100644
index 000000000..c7599a008
--- /dev/null
+++ b/view/pdl/mod_articles.pdl
@@ -0,0 +1,8 @@
+[region=aside]
+[widget=categories][var=articles]1[/var][/widget]
+[widget=tasklist][/widget]
+[widget=notes][/widget]
+[/region]
+[region=right_aside]
+[widget=notifications][/widget]
+[/region]