и в функциях
gotoNext()


gotoPrev()
$('.prev-button-1').removeClass('disabled');

http://stackoverflow.com/questions/22746308/jquery-prevent-other-events-after-a-click-while-function-in-progress