From 2d0493e856f032a0c8fcbcb8f0ee7f1e2ba4a198 2011-10-19 00:55:27 From: Brian E. Granger Date: 2011-10-19 00:55:27 Subject: [PATCH] Removed save widget delay. --- diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index d025628..23732ac 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -938,7 +938,7 @@ var IPython = (function (IPython) { Notebook.prototype.notebook_saved = function (data, status, xhr) { this.dirty = false; IPython.save_widget.notebook_saved(); - setTimeout($.proxy(IPython.save_widget.status_save,IPython.save_widget),500); + IPython.save_widget.status_save(); } @@ -946,7 +946,7 @@ var IPython = (function (IPython) { // Notify the user and reset the save button // TODO: Handle different types of errors (timeout etc.) alert('An unexpected error occured while saving the notebook.'); - setTimeout($.proxy(IPython.save_widget.reset_status,IPython.save_widget),500); + IPython.save_widget.reset_status(); }