how to temporary disable click handler From http://stackoverflow.com/questions/1263042/how-to-temporarily-disable-a-click-handler-in-jquery
$("#button_id").one('click', DoSomething);
function DoSomething() {
// do something.
$("#button_id").one('click', DoSomething);
}