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') 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') 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 4450170790de3999dc9c6f8876074e76edee8241 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 23 Aug 2017 21:26:09 -0700 Subject: partial support (unfinished) for ajax loading cards with liveupdate; page still functions even though this isn't finished --- view/js/main.js | 1 + 1 file changed, 1 insertion(+) (limited to 'view/js') diff --git a/view/js/main.js b/view/js/main.js index f20432735..bbdb0759b 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -380,6 +380,7 @@ function NavUpdate() { if($('#live-pubstream').length) { src = 'pubstream'; liveUpdate(); } if($('#live-display').length) { src = 'display'; liveUpdate(); } if($('#live-search').length) { src = 'search'; liveUpdate(); } + if($('#live-cards').length) { src = 'cards'; liveUpdate(); } if($('#live-photos').length) { if(liking) { -- cgit v1.2.3 From 186f85483fe3ab45281c442b2b275448c5230c4f Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 23 Aug 2017 22:17:15 -0700 Subject: cards: make likes reload page --- view/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view/js') diff --git a/view/js/main.js b/view/js/main.js index bbdb0759b..fd3c8b08f 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -380,9 +380,9 @@ function NavUpdate() { if($('#live-pubstream').length) { src = 'pubstream'; liveUpdate(); } if($('#live-display').length) { src = 'display'; liveUpdate(); } if($('#live-search').length) { src = 'search'; liveUpdate(); } - if($('#live-cards').length) { src = 'cards'; liveUpdate(); } + // if($('#live-cards').length) { src = 'cards'; liveUpdate(); } - if($('#live-photos').length) { + if($('#live-photos').length || $('#live-cards').length) { if(liking) { liking = 0; window.location.href=window.location.href; -- cgit v1.2.3