|
|
|
@ -45,6 +45,8 @@ $(document).ready(function () {
|
|
|
|
|
if (!$.fn.autoHidingNavbar) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
require(['hooks'], (hooks) => {
|
|
|
|
|
var env = utils.findBootstrapEnvironment();
|
|
|
|
|
// if env didn't change don't destroy and recreate
|
|
|
|
|
if (env === lastBSEnv) {
|
|
|
|
@ -55,7 +57,10 @@ $(document).ready(function () {
|
|
|
|
|
navbarEl.autoHidingNavbar('destroy').removeData('plugin_autoHidingNavbar');
|
|
|
|
|
navbarEl.css('top', '');
|
|
|
|
|
|
|
|
|
|
if (env === 'xs' || env === 'sm') {
|
|
|
|
|
hooks.fire('filter:persona.configureNavbarHiding', {
|
|
|
|
|
resizeEnvs: ['xs', 'sm'],
|
|
|
|
|
}).then(({ resizeEnvs }) => {
|
|
|
|
|
if (resizeEnvs.includes(env)) {
|
|
|
|
|
navbarEl.autoHidingNavbar({
|
|
|
|
|
showOnBottom: false,
|
|
|
|
|
});
|
|
|
|
@ -81,6 +86,8 @@ $(document).ready(function () {
|
|
|
|
|
.on('hide.autoHidingNavbar', function () {
|
|
|
|
|
fixTopCss('0px');
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function setupNProgress() {
|
|
|
|
|