Make WordPress Core

Ticket #8710: autosave.patch

File autosave.patch, 776 bytes (added by emartin24, 15 years ago)

autosave fix

  • autosave.js

     
    114114}
    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}
    124124