Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for KuCalc : devops.
Download
50650 views
1
define([
2
'base/js/notificationarea'
3
], function(notificationarea) {
4
"use strict";
5
var NotificationArea = notificationarea.NotificationArea;
6
7
var EditorNotificationArea = function(selector, options) {
8
NotificationArea.apply(this, [selector, options]);
9
}
10
11
EditorNotificationArea.prototype = Object.create(NotificationArea.prototype);
12
13
/**
14
* Initialize the default set of notification widgets.
15
*
16
* @method init_notification_widgets
17
*/
18
EditorNotificationArea.prototype.init_notification_widgets = function () {
19
var that = this;
20
var savew = this.new_notification_widget('save');
21
22
this.events.on("file_saved.Editor", function() {
23
savew.set_message("File saved", 2000);
24
});
25
};
26
27
28
return {EditorNotificationArea: EditorNotificationArea};
29
});
30
31