aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-09 11:34:41 +0100
committerMario <mario@mariovavti.com>2017-11-11 20:27:31 +0100
commit28c85cf3ae658c72f5ab785998899804b6d20d8a (patch)
tree108fa317d2c946e6ce3042b8c3b0b72927ab0af0 /view/theme
parentcf4e2b295307adfe7c97cae6fd923d7c4eeed8ac (diff)
downloadvolse-hubzilla-28c85cf3ae658c72f5ab785998899804b6d20d8a.tar.gz
volse-hubzilla-28c85cf3ae658c72f5ab785998899804b6d20d8a.tar.bz2
volse-hubzilla-28c85cf3ae658c72f5ab785998899804b6d20d8a.zip
load notifications links to /display via ajax if we are already in /display
Diffstat (limited to 'view/theme')
-rw-r--r--view/theme/redbasic/js/redbasic.js4
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);