You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
842 B

"use strict";
var notificationarea = require('base/js/notificationarea');
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 savew = this.new_notification_widget('save');
this.events.on("file_saved.Editor", function() {
savew.set_message("File saved", 2000);
});
};
exports.EditorNotificationArea = EditorNotificationArea;