##// END OF EJS Templates
set default autosave interval to two minutes
MinRK -
Show More
@@ -43,7 +43,8 b' var IPython = (function (IPython) {'
43 this.last_checkpoint = null;
43 this.last_checkpoint = null;
44 this.autosave_interval = 0;
44 this.autosave_interval = 0;
45 this.autosave_timer = null;
45 this.autosave_timer = null;
46 this.minimum_autosave_interval = 30000;
46 // autosave *at most* every two minutes
47 this.minimum_autosave_interval = 120000;
47 // single worksheet for now
48 // single worksheet for now
48 this.worksheet_metadata = {};
49 this.worksheet_metadata = {};
49 this.control_key_active = false;
50 this.control_key_active = false;
@@ -87,7 +87,7 b' $(document).ready(function () {'
87 document.location.hash = '';
87 document.location.hash = '';
88 document.location.hash = hash;
88 document.location.hash = hash;
89 }
89 }
90 IPython.notebook.autosave_notebook(30000);
90 IPython.notebook.autosave_notebook(IPython.notebook.minimum_autosave_interval);
91 // only do this once
91 // only do this once
92 $([IPython.events]).off('notebook_loaded.Notebook', first_load);
92 $([IPython.events]).off('notebook_loaded.Notebook', first_load);
93 };
93 };
General Comments 0
You need to be logged in to leave comments. Login now