diff --git a/IPython/frontend/html/notebook/static/js/notebookmain.js b/IPython/frontend/html/notebook/static/js/notebookmain.js index 27a1f218c..2416b4b5d 100644 --- a/IPython/frontend/html/notebook/static/js/notebookmain.js +++ b/IPython/frontend/html/notebook/static/js/notebookmain.js @@ -31,7 +31,8 @@ $(document).ready(function () { IPython.menubar = new IPython.MenuBar('#menubar') IPython.toolbar = new IPython.ToolBar('#toolbar') IPython.tooltip = new IPython.Tooltip() - IPython.notification_widget = new IPython.NotificationWidget('#notification') + IPython.notification_area = new IPython.NotificationArea('#notification_area') + IPython.initNotificationWidgets(IPython); IPython.layout_manager.do_resize(); diff --git a/IPython/frontend/html/notebook/static/js/notificationarea.js b/IPython/frontend/html/notebook/static/js/notificationarea.js index 8cdd55ddc..5148de461 100644 --- a/IPython/frontend/html/notebook/static/js/notificationarea.js +++ b/IPython/frontend/html/notebook/static/js/notificationarea.js @@ -42,6 +42,12 @@ var IPython = (function (IPython) { }, tmout) }; + NotificationArea.prototype.new_notification_widget = function(name) { + var div = $('
').attr('id','notification_'+name); + $(this.selector).append(div) + return new IPython.NotificationWidget('#notification_'+name) + } + IPython.NotificationArea = NotificationArea; return IPython;