mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Bump autosave interval to 2 minutes for now. #3379
git-svn-id: https://develop.svn.wordpress.org/trunk@4512 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
56cda89bdf
commit
ce1cb37f34
@ -7,7 +7,7 @@ var autosavePeriodical;
|
||||
function autosave_start_timer() {
|
||||
var form = $('post');
|
||||
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
|
||||
if(form.addEventListener) {
|
||||
form.addEventListener("submit", function () { autosavePeriodical.currentlyExecuting = true; }, false);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user