Add a class to basecontainer when slideup

This commit is contained in:
Hadi Nategh 2019-03-07 16:31:47 +01:00
parent 756ebb77f3
commit 0361eb3786

View File

@ -20,6 +20,7 @@ function show_pixelegg_header(_toggle, _delay)
jQuery(_toggle).parent().removeClass("slidedown"); jQuery(_toggle).parent().removeClass("slidedown");
jQuery(_toggle).parent().addClass("slideup"); jQuery(_toggle).parent().addClass("slideup");
jQuery('#egwpopup, .egwpopup_message.egwpopup_expanded').css({top:'90px', height:'calc(100% - 130px)'}); jQuery('#egwpopup, .egwpopup_message.egwpopup_expanded').css({top:'90px', height:'calc(100% - 130px)'});
jQuery('#egw_fw_basecontainer').addClass('slideIsUp');
} }
//closed = Topmenu is gone //closed = Topmenu is gone
@ -48,6 +49,7 @@ function hide_pixelegg_header(_toggle, _delay)
jQuery(_toggle).parent().removeClass("slideup"); jQuery(_toggle).parent().removeClass("slideup");
jQuery(_toggle).parent().addClass("slidedown"); jQuery(_toggle).parent().addClass("slidedown");
jQuery('#egwpopup, .egwpopup_message.egwpopup_expanded').css({top:'45px', height:'calc(100% - 85px)'}); jQuery('#egwpopup, .egwpopup_message.egwpopup_expanded').css({top:'45px', height:'calc(100% - 85px)'});
jQuery('#egw_fw_basecontainer').removeClass('slideIsUp');
} }
/* /*
@ -106,7 +108,7 @@ egw_LAB.wait(function() {
egw_getFramework().notifyTabChange(); egw_getFramework().notifyTabChange();
},1000); },1000);
}); });
jQuery('#egw_fw_basecontainer').addClass('slideIsUp');
// hide header, if pref says it is not shown // hide header, if pref says it is not shown
if (egw.preference('pixelegg_header_hidden')) { if (egw.preference('pixelegg_header_hidden')) {
setTimeout(function(){hide_pixelegg_header(jQuery('#slidetoggle'),0)},1); setTimeout(function(){hide_pixelegg_header(jQuery('#slidetoggle'),0)},1);