update to use event

pull/37/head
Bussonnier Matthias 11 years ago
parent 9ae62c21b8
commit ac355d757f

@ -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 = {

Loading…
Cancel
Save