aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/notifications_widget.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/notifications_widget.tpl')
-rw-r--r--view/tpl/notifications_widget.tpl7
1 files changed, 6 insertions, 1 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl
index b4b0c02ef..15b29490b 100644
--- a/view/tpl/notifications_widget.tpl
+++ b/view/tpl/notifications_widget.tpl
@@ -13,11 +13,15 @@
}
$('.notifications-btn').click(function() {
+ $('#notifications_wrapper').removeClass('d-none');
+
if($('#notifications_wrapper').hasClass('fs')) {
$('#notifications_wrapper').prependTo('#' + notifications_parent);
+ $('#notifications_wrapper').addClass('d-none');
+
}
else {
- $('#notifications_wrapper').prependTo('section');
+ $('#notifications_wrapper').prependTo('main');
}
$('#notifications_wrapper').toggleClass('fs');
@@ -27,6 +31,7 @@
});
$(document).on('click', '.notification', function() {
+ $('#notifications_wrapper').addClass('d-none');
if($('#notifications_wrapper').hasClass('fs')) {
$('#notifications_wrapper').prependTo('#' + notifications_parent).removeClass('fs');
}