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

Loading…
Cancel
Save