Bump autosave interval to 2 minutes for now. #3379
git-svn-id: http://svn.automattic.com/wordpress/trunk@4512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6f8d9c92a5
commit
49281a1caf
|
@ -7,7 +7,7 @@ var autosavePeriodical;
|
||||||
function autosave_start_timer() {
|
function autosave_start_timer() {
|
||||||
var form = $('post');
|
var form = $('post');
|
||||||
autosaveLast = form.post_title.value+form.content.value;
|
autosaveLast = form.post_title.value+form.content.value;
|
||||||
autosavePeriodical = new PeriodicalExecuter(autosave, <?php echo apply_filters('autosave_interval', '16'); ?>);
|
autosavePeriodical = new PeriodicalExecuter(autosave, <?php echo apply_filters('autosave_interval', '120'); ?>);
|
||||||
//Disable autosave after the form has been submitted
|
//Disable autosave after the form has been submitted
|
||||||
if(form.addEventListener) {
|
if(form.addEventListener) {
|
||||||
form.addEventListener("submit", function () { autosavePeriodical.currentlyExecuting = true; }, false);
|
form.addEventListener("submit", function () { autosavePeriodical.currentlyExecuting = true; }, false);
|
||||||
|
|
Loading…
Reference in New Issue