mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-25 13:30:27 +08:00
fix click unbind
unbind click to dismissed when click, otherwise it stays for next button shown
This commit is contained in:
parent
71a1675c8f
commit
adcb0a8f56
@ -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')
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user