Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7a392f6

Browse files
committed
only autosave when dirty
1 parent 757bf96 commit 7a392f6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

IPython/frontend/html/notebook/static/js/notebook.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,9 @@ var IPython = (function (IPython) {
15701570
this.autosave_interval = interval;
15711571
if (interval) {
15721572
this.autosave_timer = setInterval(function() {
1573-
that.save_notebook();
1573+
if (that.dirty) {
1574+
that.save_notebook();
1575+
}
15741576
}, interval);
15751577
$([IPython.events]).trigger("autosave_enabled.Notebook", interval);
15761578
} else {

0 commit comments

Comments
 (0)