trigger autosave on tab/window close

instead of "please don't leave!"
This commit is contained in:
MinRK 2013-04-10 16:53:45 -07:00
parent e119a6469b
commit 6da01bf362

View File

@ -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.