Skip to content

Instantly share code, notes, and snippets.

@yhsiang
Created November 28, 2015 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yhsiang/45dbdca70dceb0e65a88 to your computer and use it in GitHub Desktop.
Save yhsiang/45dbdca70dceb0e65a88 to your computer and use it in GitHub Desktop.
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