##// END OF EJS Templates
update to use event
Bussonnier Matthias -
Show More
@@ -1919,7 +1919,10 define([
1919 */
1919 */
1920 Notebook.prototype.save_notebook = function () {
1920 Notebook.prototype.save_notebook = function () {
1921 if(!this._fully_loaded){
1921 if(!this._fully_loaded){
1922 return this.save_notebook_error(null, null, "Load failed, save is disabled");
1922 this.events.trigger('notebook_save_failed.Notebook',
1923 new Error("Load failed, save is disabled")
1924 );
1925 return
1923 }
1926 }
1924 // Create a JSON model to be sent to the server.
1927 // Create a JSON model to be sent to the server.
1925 var model = {
1928 var model = {
General Comments 0
You need to be logged in to leave comments. Login now