load notifications links to /display via ajax if we are already in /display

This commit is contained in:
Mario Vavti
2017-11-09 11:34:41 +01:00
parent e7d20efb1b
commit fc96cd3710
5 changed files with 34 additions and 5 deletions

View File

@@ -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);