aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
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">