mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
trap undefined timout
This commit is contained in:
parent
d6ebf4d2b1
commit
e5ede75fdb
@ -32,12 +32,12 @@ var IPython = (function (IPython) {
|
||||
.text(msg);
|
||||
|
||||
$(this.selector).append(tdiv);
|
||||
var tmout = Math.max(1000,timeout);
|
||||
var tmout = Math.max(1500,(timeout||1500));
|
||||
tdiv.fadeIn(100);
|
||||
|
||||
setTimeout(function () {
|
||||
tdiv.fadeOut(100, function () {tdiv.remove();});
|
||||
}, timeout)
|
||||
}, tmout)
|
||||
};
|
||||
|
||||
IPython.NotificationArea = NotificationArea;
|
||||
|
Loading…
Reference in New Issue
Block a user