aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-23 22:17:15 -0700
committerzotlabs <mike@macgirvin.com>2017-08-23 22:17:15 -0700
commit186f85483fe3ab45281c442b2b275448c5230c4f (patch)
treebe400abc22e656af28e70af866265820d57b2c94
parente157e3bec8722c04ed8dc2d215cd2efd0ce3ce79 (diff)
downloadvolse-hubzilla-186f85483fe3ab45281c442b2b275448c5230c4f.tar.gz
volse-hubzilla-186f85483fe3ab45281c442b2b275448c5230c4f.tar.bz2
volse-hubzilla-186f85483fe3ab45281c442b2b275448c5230c4f.zip
cards: make likes reload page
-rw-r--r--view/js/main.js4
-rw-r--r--view/tpl/cards.tpl1
2 files changed, 3 insertions, 2 deletions
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;
diff --git a/view/tpl/cards.tpl b/view/tpl/cards.tpl
index ae382a97f..a06e2fd22 100644
--- a/view/tpl/cards.tpl
+++ b/view/tpl/cards.tpl
@@ -2,6 +2,7 @@
<div class="section-title-wrapper">
<h2>{{$title}}</h2>
</div>
+ <div id="live-cards"></div>
{{$editor}}
{{$content}}
</div>