From e5ede75fdb04c057945d09dff4e5075918c7e603 Mon Sep 17 00:00:00 2001 From: Matthias BUSSONNIER Date: Sun, 22 Jul 2012 04:19:21 +0200 Subject: [PATCH] trap undefined timout --- IPython/frontend/html/notebook/static/js/notificationarea.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IPython/frontend/html/notebook/static/js/notificationarea.js b/IPython/frontend/html/notebook/static/js/notificationarea.js index 7cd6b21b2..9cde83460 100644 --- a/IPython/frontend/html/notebook/static/js/notificationarea.js +++ b/IPython/frontend/html/notebook/static/js/notificationarea.js @@ -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;