call init method

Matthias BUSSONNIER 14 years ago
parent 8d6a9e0a67
commit a0bc644153

@ -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();

@ -42,6 +42,12 @@ var IPython = (function (IPython) {
}, tmout)
};
NotificationArea.prototype.new_notification_widget = function(name) {
var div = $('<div/>').attr('id','notification_'+name);
$(this.selector).append(div)
return new IPython.NotificationWidget('#notification_'+name)
}
IPython.NotificationArea = NotificationArea;
return IPython;

Loading…
Cancel
Save