Changeset 10251
- Timestamp:
- 12/24/2008 02:14:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/autosave.js
r10235 r10251 115 115 116 116 function autosave_enable_buttons() { 117 jQuery(" #submitpost :button:disabled, #submitpost:submit:disabled").attr('disabled', '');117 jQuery(".submitbox :button:disabled, .submitbox :submit:disabled").attr('disabled', ''); 118 118 } 119 119 120 120 function 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'); 122 122 setTimeout(autosave_enable_buttons, 5000); // Re-enable 5 sec later. Just gives autosave a head start to avoid collisions. 123 123 }
Note: See TracChangeset
for help on using the changeset viewer.