fix: move setupTaskbar and mobileMenu to action:app.load

main
Barış Soner Uşaklı 4 years ago
parent b4f65dda2f
commit 71f8d0b29a

@ -4,9 +4,7 @@
$(document).ready(function () {
setupNProgress();
setupTaskbar();
setupEditedByIcon();
setupMobileMenu();
setupQuickReply();
configureNavbarHiding();
fixHeaderPadding();
@ -18,6 +16,11 @@ $(document).ready(function () {
setupMobileMenu();
});
$(window).on('action:app.load', function () {
setupTaskbar();
setupMobileMenu();
});
function fixHeaderPadding() {
var env = utils.findBootstrapEnvironment();
if (env === 'sm' || env === 'xs' || env === 'md') {

Loading…
Cancel
Save