|
@ -462,7 +462,7 @@ $.fn.sidebar = function(parameters) { |
|
|
if(settings.transition == 'scale down') { |
|
|
if(settings.transition == 'scale down') { |
|
|
module.scrollToTop(); |
|
|
module.scrollToTop(); |
|
|
} |
|
|
} |
|
|
module.set.transition(); |
|
|
|
|
|
|
|
|
module.set.transition(transition); |
|
|
module.repaint(); |
|
|
module.repaint(); |
|
|
animate = function() { |
|
|
animate = function() { |
|
|
module.bind.clickaway(); |
|
|
module.bind.clickaway(); |
|
@ -505,7 +505,7 @@ $.fn.sidebar = function(parameters) { |
|
|
; |
|
|
; |
|
|
module.verbose('Removing context push state', module.get.direction()); |
|
|
module.verbose('Removing context push state', module.get.direction()); |
|
|
|
|
|
|
|
|
module.set.transition(); |
|
|
|
|
|
|
|
|
module.set.transition(transition); |
|
|
module.unbind.clickaway(); |
|
|
module.unbind.clickaway(); |
|
|
module.unbind.scrollLock(); |
|
|
module.unbind.scrollLock(); |
|
|
|
|
|
|
|
@ -695,7 +695,7 @@ $.fn.sidebar = function(parameters) { |
|
|
direction = module.get.direction(), |
|
|
direction = module.get.direction(), |
|
|
transition |
|
|
transition |
|
|
; |
|
|
; |
|
|
return ( module.is.mobile() ) |
|
|
|
|
|
|
|
|
transition = ( module.is.mobile() ) |
|
|
? (settings.mobileTransition == 'auto') |
|
|
? (settings.mobileTransition == 'auto') |
|
|
? settings.defaultTransition.mobile[direction] |
|
|
? settings.defaultTransition.mobile[direction] |
|
|
: settings.mobileTransition |
|
|
: settings.mobileTransition |
|
@ -703,6 +703,8 @@ $.fn.sidebar = function(parameters) { |
|
|
? settings.defaultTransition.computer[direction] |
|
|
? settings.defaultTransition.computer[direction] |
|
|
: settings.transition |
|
|
: settings.transition |
|
|
; |
|
|
; |
|
|
|
|
|
module.verbose('Determined transition', transition); |
|
|
|
|
|
return transition; |
|
|
}, |
|
|
}, |
|
|
transitionEvent: function() { |
|
|
transitionEvent: function() { |
|
|
var |
|
|
var |
|
@ -763,7 +765,7 @@ $.fn.sidebar = function(parameters) { |
|
|
ios: function() { |
|
|
ios: function() { |
|
|
var |
|
|
var |
|
|
userAgent = navigator.userAgent, |
|
|
userAgent = navigator.userAgent, |
|
|
isIOS = regExp.ios.test(userAgent) |
|
|
|
|
|
|
|
|
isIOS = userAgent.match(regExp.ios) |
|
|
; |
|
|
; |
|
|
if(isIOS) { |
|
|
if(isIOS) { |
|
|
module.verbose('Browser was found to be iOS', userAgent); |
|
|
module.verbose('Browser was found to be iOS', userAgent); |
|
@ -776,7 +778,7 @@ $.fn.sidebar = function(parameters) { |
|
|
mobile: function() { |
|
|
mobile: function() { |
|
|
var |
|
|
var |
|
|
userAgent = navigator.userAgent, |
|
|
userAgent = navigator.userAgent, |
|
|
isMobile = regExp.mobile.test(userAgent) |
|
|
|
|
|
|
|
|
isMobile = userAgent.match(regExp.mobile) |
|
|
; |
|
|
; |
|
|
if(isMobile) { |
|
|
if(isMobile) { |
|
|
module.verbose('Browser was found to be mobile', userAgent); |
|
|
module.verbose('Browser was found to be mobile', userAgent); |
|
|