aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/notifications_widget.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-03-05 22:59:05 +0100
committerMario Vavti <mario@mariovavti.com>2018-03-05 22:59:05 +0100
commitbae2af09a0c2bc0d733e586aec156d5f1a270a92 (patch)
tree3d8ff3c14cbd08ff95adfc8f8425d6a9df250d61 /view/tpl/notifications_widget.tpl
parenta0e0b8206722aa98994ea02e7c4768db19d7932a (diff)
downloadvolse-hubzilla-bae2af09a0c2bc0d733e586aec156d5f1a270a92.tar.gz
volse-hubzilla-bae2af09a0c2bc0d733e586aec156d5f1a270a92.tar.bz2
volse-hubzilla-bae2af09a0c2bc0d733e586aec156d5f1a270a92.zip
fix javascript error if there are no notifications
Diffstat (limited to 'view/tpl/notifications_widget.tpl')
-rw-r--r--view/tpl/notifications_widget.tpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl
index 18250cf97..215fddd08 100644
--- a/view/tpl/notifications_widget.tpl
+++ b/view/tpl/notifications_widget.tpl
@@ -1,3 +1,4 @@
+{{if $notifications}}
<script>
var notifications_parent;
@@ -121,8 +122,6 @@
}
</script>
-
-{{if $notifications}}
<div id="notifications_wrapper">
<div id="no_notifications" class="d-xl-none">
{{$no_notifications}}<span class="jumping-dots"><span class="dot-1">.</span><span class="dot-2">.</span><span class="dot-3">.</span></span>