aboutsummaryrefslogtreecommitdiffstats
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:51 +0100
commitc304361c9b2255bd290f9c2957264530fc6c89b7 (patch)
treef8ad31b15cfd0d72670092f6efd4912b8b4a51d4
parent12ca4caa4aae579e369149ce45956033bcc7dca9 (diff)
downloadvolse-hubzilla-c304361c9b2255bd290f9c2957264530fc6c89b7.tar.gz
volse-hubzilla-c304361c9b2255bd290f9c2957264530fc6c89b7.tar.bz2
volse-hubzilla-c304361c9b2255bd290f9c2957264530fc6c89b7.zip
fix javascript error if there are no notifications
-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>