From d1ebd1b60e0935531c6247167bbd0a6d2f21b07e 2014-03-25 23:31:29 From: Paul Ivanov Date: 2014-03-25 23:31:29 Subject: [PATCH] address PR feedback --- diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 6681aa2..8b7a69a 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -59,7 +59,7 @@ var IPython = (function (IPython) { this.create_elements(); this.bind_events(); this.save_notebook = function() { // don't allow save until notebook_loaded - this.save_notebook_error(null, null, "Notebook was not fully loaded."); + this.save_notebook_error(null, null, "Load failed, save is disabled"); }; }; diff --git a/IPython/html/static/notebook/js/notificationarea.js b/IPython/html/static/notebook/js/notificationarea.js index 9cc5db2..a2ecad1 100644 --- a/IPython/html/static/notebook/js/notificationarea.js +++ b/IPython/html/static/notebook/js/notificationarea.js @@ -189,7 +189,7 @@ var IPython = (function (IPython) { nnw.set_message("Notebook saved",2000); }); $([IPython.events]).on('notebook_save_failed.Notebook', function (evt, xhr, status, data) { - nnw.set_message("Notebook save failed:" + data); + nnw.set_message(data || "Notebook save failed"); }); // Checkpoint events