WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/02/2013 10:51:09 PM (8 years ago)
Author:
azaozz
Message:

Autosave: use heartbeat to determine when connection is lost and disable the Save and Publish buttons. Re-enable the buttons when connection is restored. Props dh-shredder, see #23220

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r23868 r23886  
    366366<div id="message" class="updated"><p><?php echo $message; ?></p></div>
    367367<?php endif; ?>
     368<div id="lost-connection-notice" class="error hidden">
     369    <p><?php _e("You have lost your connection with the server, and saving has been disabled. This message will vanish once you've reconnected."); ?></p>
     370</div>
    368371<form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>>
    369372<?php wp_nonce_field($nonce_action); ?>
Note: See TracChangeset for help on using the changeset viewer.