diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-11-09 11:34:41 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-11-09 11:34:41 +0100 |
commit | fc96cd371042a92ed180635b91924413392d3972 (patch) | |
tree | 19cbe2aaee6d625df3ab5dcd2c60d7ceec074070 /view/theme/redbasic/js/redbasic.js | |
parent | e7d20efb1b8d579bcb9bdef99205aad19281f6b2 (diff) | |
download | volse-hubzilla-fc96cd371042a92ed180635b91924413392d3972.tar.gz volse-hubzilla-fc96cd371042a92ed180635b91924413392d3972.tar.bz2 volse-hubzilla-fc96cd371042a92ed180635b91924413392d3972.zip |
load notifications links to /display via ajax if we are already in /display
Diffstat (limited to 'view/theme/redbasic/js/redbasic.js')
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 04199ea95..3fee0f282 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -1,6 +1,8 @@ /** * redbasic theme specific JavaScript */ + +var notifications_parent; $(document).ready(function() { // CSS3 calc() fallback (for unsupported browsers) @@ -82,7 +84,7 @@ $(document).ready(function() { } }); - var notifications_parent = $('#notifications_wrapper')[0].parentElement.id; + notifications_parent = $('#notifications_wrapper')[0].parentElement.id; $('#notifications-btn').click(function() { if($('#notifications_wrapper').hasClass('fs')) $('#notifications_wrapper').prependTo('#' + notifications_parent); |