From 6da01bf3620f71a13efcef049f6156c465fdb974 Mon Sep 17 00:00:00 2001 From: MinRK Date: Wed, 10 Apr 2013 16:53:45 -0700 Subject: [PATCH] trigger autosave on tab/window close instead of "please don't leave!" --- IPython/frontend/html/notebook/static/js/notebook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index 8a5afee1c..22f56e2ca 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -339,7 +339,7 @@ var IPython = (function (IPython) { that.kernel.kill(); } if (that.dirty && ! that.read_only) { - return "You have unsaved changes that will be lost if you leave this page."; + that.save_notebook(); }; // Null is the *only* return value that will make the browser not // pop up the "don't leave" dialog.