diff options
Diffstat (limited to 'view/tpl/notifications_widget.tpl')
-rw-r--r-- | view/tpl/notifications_widget.tpl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 9d2e08c41..3545f4379 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -83,6 +83,30 @@ </script> +{{if $module == 'display'}} +<script> + $(document).on('click', '.notification', function(e) { + var b64mid = $(this).data('b64mid'); + var path = $(this)[0].pathname.substr(1,7); + + if(path === 'display' && b64mid) { + e.preventDefault(); + e.stopPropagation(); + + $('.thread-wrapper').remove(); + $(this).fadeOut(); + bParam_mid = b64mid; + mode = 'replace'; + page_load = true; + liveUpdate(); + + if($('#notifications_wrapper').hasClass('fs')) + $('#notifications_wrapper').prependTo('#' + notifications_parent).removeClass('fs'); //var notifications_parent is defined in redbasic.js + } + }); +</script> +{{/if}} + {{if $notifications}} <div id="notifications_wrapper"> <div id="no_notifications" class="d-xl-none"> |