Make WordPress Core

Changeset 10251


Ignore:
Timestamp:
12/24/2008 02:14:09 AM (16 years ago)
Author:
azaozz
Message:

Fix disabling of submit buttons while auto-saving for pages, props emartin24, fixes #8710 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/autosave.js

    r10235 r10251  
    115115
    116116function autosave_enable_buttons() {
    117     jQuery("#submitpost :button:disabled, #submitpost :submit:disabled").attr('disabled', '');
     117    jQuery(".submitbox :button:disabled, .submitbox :submit:disabled").attr('disabled', '');
    118118}
    119119
    120120function autosave_disable_buttons() {
    121     jQuery("#submitpost :button:enabled, #submitpost :submit:enabled").attr('disabled', 'disabled');
     121    jQuery(".submitbox :button:enabled, .submitbox :submit:enabled").attr('disabled', 'disabled');
    122122    setTimeout(autosave_enable_buttons, 5000); // Re-enable 5 sec later.  Just gives autosave a head start to avoid collisions.
    123123}
Note: See TracChangeset for help on using the changeset viewer.