aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/notifications_widget.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-09 18:36:40 -0800
committerzotlabs <mike@macgirvin.com>2017-11-09 18:36:40 -0800
commit71a30cd9a5f5c749e3b76e961876afbd0afa87f9 (patch)
tree81e1a5fc1d52839f8735acbba23064027fece2ac /view/tpl/notifications_widget.tpl
parentef27a1ce6c3cdb6f08584e76fa0c012377cadc49 (diff)
parent766a7fb1b46a506e92d62ed0b76e0e0e3e6958a5 (diff)
downloadvolse-hubzilla-71a30cd9a5f5c749e3b76e961876afbd0afa87f9.tar.gz
volse-hubzilla-71a30cd9a5f5c749e3b76e961876afbd0afa87f9.tar.bz2
volse-hubzilla-71a30cd9a5f5c749e3b76e961876afbd0afa87f9.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.tpl24
1 files changed, 24 insertions, 0 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl
index 6865879ad..1e752c313 100644
--- a/view/tpl/notifications_widget.tpl
+++ b/view/tpl/notifications_widget.tpl
@@ -26,6 +26,30 @@
}
</style>
+{{if $module == 'display'}}
+<script>
+ $(document).on('click', '.notification', function(e) {
+ var mid = $(this)[0].pathname.substr(9);
+ var path = $(this)[0].pathname.substr(1,7);
+
+ if(path === 'display' && mid) {
+ e.preventDefault();
+ e.stopPropagation();
+
+ $('.thread-wrapper').remove();
+ $(this).fadeOut();
+ bParam_mid = mid;
+ 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="notifications" class="navbar-nav" data-children=".nav-item">