From bf7b0b11ef7a8d110f2fc2a5967d8178183d9435 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 23 Aug 2017 20:16:08 -0700 Subject: add autotime to cards --- view/js/mod_cards.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 view/js/mod_cards.js (limited to 'view/js/mod_cards.js') diff --git a/view/js/mod_cards.js b/view/js/mod_cards.js new file mode 100644 index 000000000..477cd61ed --- /dev/null +++ b/view/js/mod_cards.js @@ -0,0 +1,4 @@ +$(document).ready( function() { + $("> .wall-item-outside-wrapper .autotime, > .thread-wrapper .autotime").timeago(); + $("> .shared_header .autotime").timeago(); +}); \ No newline at end of file -- cgit v1.2.3 From c9745a41295337444832f0c787d0dd4fb3425e1f Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 23 Aug 2017 20:19:52 -0700 Subject: apply autotime to all autotime classed elements when static loading a page --- view/js/mod_cards.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'view/js/mod_cards.js') diff --git a/view/js/mod_cards.js b/view/js/mod_cards.js index 477cd61ed..78b2e1bd0 100644 --- a/view/js/mod_cards.js +++ b/view/js/mod_cards.js @@ -1,4 +1,3 @@ $(document).ready( function() { - $("> .wall-item-outside-wrapper .autotime, > .thread-wrapper .autotime").timeago(); - $("> .shared_header .autotime").timeago(); + $(".autotime").timeago(); }); \ No newline at end of file -- cgit v1.2.3 From b80f0b896053f300d1c888719a93ce67c0542ce5 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 28 Aug 2017 20:11:08 -0700 Subject: add editor autocompleters on cards page --- view/js/mod_cards.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'view/js/mod_cards.js') diff --git a/view/js/mod_cards.js b/view/js/mod_cards.js index 78b2e1bd0..8b31c0f52 100644 --- a/view/js/mod_cards.js +++ b/view/js/mod_cards.js @@ -1,3 +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 -- cgit v1.2.3