fix click unbind

unbind click to dismissed when click, otherwise it stays for next
button shown
This commit is contained in:
Matthias BUSSONNIER 2012-07-28 19:20:34 +02:00
parent 71a1675c8f
commit adcb0a8f56

View File

@ -58,12 +58,12 @@ var IPython = (function (IPython) {
this.element.click(function(){
if( callback() != false){
that.element.fadeOut(100, function () {that.element.html('');});
that.element.unbind('click')
}
if (that.timeout !== undefined) {
that.timeout = undefined
clearTimeout(that.timeout);
}
that.element.unbind('click')
});
}
};