From d469467989b38fda90404a7e10877bb49bc136bc 2014-11-19 20:44:15 From: Bussonnier Matthias <bussonniermatthias@gmail.com> Date: 2014-11-19 20:44:15 Subject: [PATCH] update to use event --- diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 27bfeb2..0187fd7 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -1919,7 +1919,10 @@ define([ */ Notebook.prototype.save_notebook = function () { if(!this._fully_loaded){ - return this.save_notebook_error(null, null, "Load failed, save is disabled"); + this.events.trigger('notebook_save_failed.Notebook', + new Error("Load failed, save is disabled") + ); + return } // Create a JSON model to be sent to the server. var model = {