Merge pull request #1936 from minrk/savenotify

Increase duration of save messages and write permanent 'failed' message to the save status area on failed save.

Not a pop-up as described in #1461, but significantly more prominent, and most importantly permanent when saving fails, at least until the next successful save.

Closes #1461.
Fernando Perez 14 years ago
commit ea6e18abf3

@ -85,10 +85,10 @@ var IPython = (function (IPython) {
that.set_message("Saving notebook",500);
});
$([IPython.events]).on('notebook_saved.Notebook', function () {
that.set_message("Notebook saved",500);
that.set_message("Notebook saved",2000);
});
$([IPython.events]).on('notebook_save_failed.Notebook', function () {
that.set_message("Notebook save failed",500);
that.set_message("Notebook save failed",2000);
});
};

@ -52,7 +52,7 @@ var IPython = (function (IPython) {
that.update_document_title();
});
$([IPython.events]).on('notebook_save_failed.Notebook', function () {
that.set_save_status('');
that.set_save_status('Last Save Failed!');
});
};

Loading…
Cancel
Save