Show More
@@ -349,9 +349,11 b' var IPython = (function (IPython) {' | |||||
349 | // still warn, because if we don't the autosave may fail. |
|
349 | // still warn, because if we don't the autosave may fail. | |
350 | if (that.dirty && ! that.read_only) { |
|
350 | if (that.dirty && ! that.read_only) { | |
351 | if ( that.autosave_interval ) { |
|
351 | if ( that.autosave_interval ) { | |
352 |
|
|
352 | that.save_notebook(); | |
|
353 | return "Autosave in progress, latest changes may be lost."; | |||
|
354 | } else { | |||
|
355 | return "Unsaved changes will be lost."; | |||
353 | } |
|
356 | } | |
354 | return "Unsaved changes will be lost."; |
|
|||
355 | }; |
|
357 | }; | |
356 | // Null is the *only* return value that will make the browser not |
|
358 | // Null is the *only* return value that will make the browser not | |
357 | // pop up the "don't leave" dialog. |
|
359 | // pop up the "don't leave" dialog. |
General Comments 0
You need to be logged in to leave comments.
Login now