diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index 47b49ba2c..181b93bd3 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -342,7 +342,8 @@ var IPython = (function (IPython) { if (kill_kernel) { that.kernel.kill(); } - if (that.dirty && ! that.read_only) { + // if we are autosaving, trigger an autosave on nav-away + if (that.dirty && that.autosave_interval && ! that.read_only) { that.save_notebook(); }; // Null is the *only* return value that will make the browser not