Browse Source

Make useLegacy more obvious in sidebar, default to auto

pull/1574/head
jlukic 10 years ago
parent
commit
1a701e20ab
1 changed files with 2 additions and 2 deletions
  1. 4
      src/definitions/modules/sidebar.js

4
src/definitions/modules/sidebar.js

@ -83,7 +83,7 @@ $.fn.sidebar = function(parameters) {
transitionEvent = module.get.transitionEvent(); transitionEvent = module.get.transitionEvent();
// cache on initialize // cache on initialize
if( module.is.legacy() || settings.legacy) {
if( (module.useLegacy == 'auto' && module.is.legacy()) || settings.useLegacy) {
settings.transition = 'overlay'; settings.transition = 'overlay';
settings.useLegacy = true; settings.useLegacy = true;
} }
@ -991,7 +991,7 @@ $.fn.sidebar.settings = {
scrollLock : false, scrollLock : false,
returnScroll : false, returnScroll : false,
useLegacy : false,
useLegacy : 'auto',
duration : 500, duration : 500,
easing : 'easeInOutQuint', easing : 'easeInOutQuint',

Loading…
Cancel
Save