From 0522c457ecd225ee01239ebf3f803d86e11e0356 2012-06-13 03:36:29 From: MinRK Date: 2012-06-13 03:36:29 Subject: [PATCH] increase duration of save messages and write permanent 'failed' message to the save status area on failed save. --- diff --git a/IPython/frontend/html/notebook/static/js/notificationwidget.js b/IPython/frontend/html/notebook/static/js/notificationwidget.js index 857c72b..c580f44 100644 --- a/IPython/frontend/html/notebook/static/js/notificationwidget.js +++ b/IPython/frontend/html/notebook/static/js/notificationwidget.js @@ -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); }); }; diff --git a/IPython/frontend/html/notebook/static/js/savewidget.js b/IPython/frontend/html/notebook/static/js/savewidget.js index 2921dfa..10fdfb4 100644 --- a/IPython/frontend/html/notebook/static/js/savewidget.js +++ b/IPython/frontend/html/notebook/static/js/savewidget.js @@ -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!'); }); };