autosave span from masquerade

git-svn-id: http://svn.automattic.com/wordpress/trunk@4084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-08-11 07:26:48 +00:00
parent 6b095ddfd9
commit c4a4c6c371
3 changed files with 2 additions and 6 deletions

View File

@ -152,7 +152,7 @@ endforeach;
<?php echo $form_prevstatus ?>
<p class="submit"><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="<?php _e('Save') ?>" style="font-weight: bold;" tabindex="4" />
<p class="submit"><span id="autosave"></span><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="<?php _e('Save') ?>" style="font-weight: bold;" tabindex="4" />
<?php
if ('publish' != $post->post_status || 0 == $post_ID) {
?>

View File

@ -138,6 +138,7 @@ endforeach;
</fieldset>
<p class="submit">
<span id="autosave"></span>
<input name="save" type="submit" id="save" tabindex="3" value="<?php _e('Save and Continue Editing'); ?>" />
<input type="submit" name="submit" value="<?php _e('Save') ?>" style="font-weight: bold;" tabindex="4" />
<?php

View File

@ -7,10 +7,6 @@ header("Expires: " . gmdate("D, d M Y H:i:s", time() + $expiresOffset) . " GMT")
?>
function autosave_adddiv() {
var buttons = document.getElementsByClassName('submit')[0].innerHTML;
document.getElementsByClassName('submit')[0].innerHTML = '<span id="autosave"></span>' + buttons;
}
function autosave_timer() {
autosave();
setTimeout("autosave_timer()", <?php echo apply_filters('autosave_interval', '60000') ?>);
@ -20,7 +16,6 @@ function autosave_start_timer() {
setTimeout("autosave_timer()", <?php echo apply_filters('autosave_start_delay', '60000') ?>);
}
addLoadEvent(autosave_start_timer)
addLoadEvent(autosave_adddiv);
function autosave_cur_time() {
var now = new Date();