##// END OF EJS Templates
Add an event that fires before the notebook saves
Jonathan Frederic -
Show More
@@ -1980,6 +1980,10 b' define(['
1980 1980 return;
1981 1981 }
1982 1982
1983 // Trigger an event before save, which allows listeners to modify
1984 // the notebook as needed.
1985 this.events.trigger('before_save.Notebook');
1986
1983 1987 // Create a JSON model to be sent to the server.
1984 1988 var model = {
1985 1989 type : "notebook",
@@ -37,7 +37,7 b' define(['
37 37
38 38 // Setup state saving code.
39 39 var that = this;
40 this.notebook.events.on('notebook_saved.Notebook', function() {
40 this.notebook.events.on('before_save.Notebook', function() {
41 41 var save_callback = WidgetManager._save_callback;
42 42 var options = WidgetManager._get_state_options;
43 43 if (save_callback) {
General Comments 0
You need to be logged in to leave comments. Login now