From ac355d757f357fd0bb6b0ba20bdd1301a4bb05ab Mon Sep 17 00:00:00 2001 From: Bussonnier Matthias Date: Wed, 19 Nov 2014 21:44:03 +0100 Subject: [PATCH] update to use event --- IPython/html/static/notebook/js/notebook.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 27bfeb200..0187fd7ef 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 = {