mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-11 12:30:51 +08:00
trigger autosave on tab/window close
instead of "please don't leave!"
This commit is contained in:
parent
e119a6469b
commit
6da01bf362
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user