##// END OF EJS Templates
Persistence API,...
Persistence API, This is a combination of 10 commits. Enable widget instanciation from front-end. Address @minrk 's review comments. Make API that allows users to persist widget state easily. Added support for view persistence Started adding support for model persistence. Half way there! Finished persistence API. Move persistence code into the widget framework. Fin. Bug fixes

File last commit:

r19074:a613289c
r19350:a8e5e600
Show More
notificationarea.js
29 lines | 875 B | application/javascript | JavascriptLexer
/ IPython / html / static / edit / js / notificationarea.js
Thomas Kluyver
Use NotificationArea in the text editor
r19017 define([
Thomas Kluyver
Remove unused imports in editor notificationarea
r19055 'base/js/notificationarea'
], function(notificationarea) {
Thomas Kluyver
Use NotificationArea in the text editor
r19017 "use strict";
var NotificationArea = notificationarea.NotificationArea;
var EditorNotificationArea = function(selector, options) {
NotificationArea.apply(this, [selector, options]);
}
EditorNotificationArea.prototype = Object.create(NotificationArea.prototype);
/**
* Initialize the default set of notification widgets.
*
* @method init_notification_widgets
*/
EditorNotificationArea.prototype.init_notification_widgets = function () {
var that = this;
var enw = this.new_notification_widget('editor');
this.events.on("save_succeeded.TextEditor", function() {
enw.set_message("File saved", 2000);
});
};
return {EditorNotificationArea: EditorNotificationArea};
});