aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-15 09:01:57 +0100
committerMario Vavti <mario@mariovavti.com>2017-11-15 09:01:57 +0100
commitf50ae07560546afc50a10eae63c5e9395db968e1 (patch)
tree2d8fe623bbd6308b05d81a81dbd3127cb1fb9c35 /view
parent3c3c0ed34269cecdbda1288eab5b63c664a8859c (diff)
downloadvolse-hubzilla-f50ae07560546afc50a10eae63c5e9395db968e1.tar.gz
volse-hubzilla-f50ae07560546afc50a10eae63c5e9395db968e1.tar.bz2
volse-hubzilla-f50ae07560546afc50a10eae63c5e9395db968e1.zip
fix notifications again after recent changes
Diffstat (limited to 'view')
-rw-r--r--view/tpl/notifications_widget.tpl7
1 files changed, 4 insertions, 3 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl
index 29892ba79..0095b8b85 100644
--- a/view/tpl/notifications_widget.tpl
+++ b/view/tpl/notifications_widget.tpl
@@ -26,7 +26,6 @@
}
</style>
-{{if $module == 'display'}}
<script>
var notifications_parent;
$(document).ready(function() {
@@ -44,6 +43,7 @@
});
});
+ {{if $module == 'display'}}
$(document).on('click', '.notification', function(e) {
var b64mid = $(this).data('b64mid');
var path = $(this)[0].pathname.substr(1,7);
@@ -60,11 +60,12 @@
liveUpdate();
if($('#notifications_wrapper').hasClass('fs'))
- $('#notifications_wrapper').prependTo('#' + notifications_parent).removeClass('fs'); //var notifications_parent is defined in redbasic.js
+ $('#notifications_wrapper').prependTo('#' + notifications_parent).removeClass('fs');
}
});
+ {{/if}}
</script>
-{{/if}}
+
{{if $notifications}}
<div id="notifications_wrapper">