Created
November 28, 2015 10:44
-
-
Save yhsiang/45dbdca70dceb0e65a88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
closeBooker: function () { | |
var self = this; | |
clearTimeout(self.timer); //make sure visibility timer is cleared | |
//slide booker closed | |
self.booker.animate({ | |
'left': '-100%' | |
}, self.transitionSpeed, function () { | |
//hide booker and active section in booker | |
self.booker.hide() | |
.find('div.request-container.active') | |
.hide().removeClass('active'); | |
//un-hilight button | |
self.bookerLinks.removeClass('active'); | |
self.stepBack(); | |
if (self.isYellowBooker) { | |
//reset height of container | |
self.booker.closest('div.row') | |
.animate({ | |
'height': self.booker.data('origRowHeight') | |
}, (self.transitionSpeed / 2), function () { | |
self.bookerLinksContainer.css('height', 'auto'); | |
$(this).css('height', 'auto'); | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment