more new notifications fixes

This commit is contained in:
Mario Vavti
2017-10-09 13:35:58 +02:00
parent ec173e7eb2
commit 54a0690323
4 changed files with 26 additions and 30 deletions

View File

@@ -24,11 +24,6 @@ $(document).ready(function() {
});
}
if(($(window).width() < 767) && ($('#left_aside_wrapper .widget, #left_aside_wrapper .vcard').length > 0))
$('#expand-aside').show();
else
$('#expand-aside').hide();
$('#expand-aside').on('click', toggleAside);
$('section').on('click', function() {
@@ -64,8 +59,14 @@ $(document).ready(function() {
}
});
var notifications_parent = $('#notifications')[0].parentElement.id;
$('#notifications-btn-1').click(function() {
$('#region_3').toggleClass('fs');
if($('#notifications').hasClass('fs'))
$('#notifications').prependTo('#' + notifications_parent);
else
$('#notifications').prependTo('body');
$('#notifications').toggleClass('fs');
if($('#navbar-collapse-2').hasClass('show')){
$('#navbar-collapse-2').removeClass('show');
}