aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/notifications_widget.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-14 14:50:36 -0800
committerzotlabs <mike@macgirvin.com>2017-11-14 14:50:36 -0800
commitd43542dd7a64136626550ba0569b1939b84b8146 (patch)
treef19c6f9716fcc9fe72e573d778bb45eb1c397051 /view/tpl/notifications_widget.tpl
parent59caf141d1e271ee4a6e7ab8b66f4070835dde95 (diff)
parent3c3c0ed34269cecdbda1288eab5b63c664a8859c (diff)
downloadvolse-hubzilla-d43542dd7a64136626550ba0569b1939b84b8146.tar.gz
volse-hubzilla-d43542dd7a64136626550ba0569b1939b84b8146.tar.bz2
volse-hubzilla-d43542dd7a64136626550ba0569b1939b84b8146.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'view/tpl/notifications_widget.tpl')
-rw-r--r--view/tpl/notifications_widget.tpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl
index 0ece84891..29892ba79 100644
--- a/view/tpl/notifications_widget.tpl
+++ b/view/tpl/notifications_widget.tpl
@@ -28,6 +28,22 @@
{{if $module == 'display'}}
<script>
+ var notifications_parent;
+ $(document).ready(function() {
+ notifications_parent = $('#notifications_wrapper')[0].parentElement.id;
+ $('#notifications-btn').click(function() {
+ if($('#notifications_wrapper').hasClass('fs'))
+ $('#notifications_wrapper').prependTo('#' + notifications_parent);
+ else
+ $('#notifications_wrapper').prependTo('section');
+
+ $('#notifications_wrapper').toggleClass('fs');
+ if($('#navbar-collapse-2').hasClass('show')){
+ $('#navbar-collapse-2').removeClass('show');
+ }
+ });
+ });
+
$(document).on('click', '.notification', function(e) {
var b64mid = $(this).data('b64mid');
var path = $(this)[0].pathname.substr(1,7);