Ticket #6707: 6707.c.diff
| File 6707.c.diff, 2.9 kB (added by mdawaffe, 7 months ago) |
|---|
-
wp-includes/js/autosave.js
old new 56 56 if ( res && res.responses.length && !res.errors ) { 57 57 var tempID = jQuery('#post_ID').val(); 58 58 var postID = parseInt( res.responses[0].id ); 59 autosave_update_post_ID( postID ); 59 autosave_update_post_ID( postID ); // disabled form buttons are re-enabled here 60 60 if ( tempID < 0 && postID > 0) // update media buttons 61 61 jQuery('#media-buttons a').each(function(){ 62 62 this.href = this.href.replace(tempID, postID); 63 63 }); 64 } else { 65 autosave_enable_buttons(); // re-enable disabled form buttons 64 66 } 65 autosave_enable_buttons(); // re-enable disabled form buttons66 67 } 67 68 68 69 function autosave_update_post_ID( postID ) { … … 78 79 post_type: jQuery('#post_type').val() 79 80 }, function(html) { 80 81 jQuery('#_wpnonce').val(html); 82 autosave_enable_buttons(); // re-enable disabled form buttons 81 83 }); 82 84 jQuery('#hiddenaction').val('editpost'); 83 85 } … … 127 129 128 130 function autosave_disable_buttons() { 129 131 jQuery("#submitpost :button:enabled, #submitpost :submit:enabled").attr('disabled', 'disabled'); 130 setTimeout(autosave_enable_buttons, 1000); // Re-enable 1sec later. Just gives autosave a head start to avoid collisions.132 setTimeout(autosave_enable_buttons, 5000); // Re-enable 5 sec later. Just gives autosave a head start to avoid collisions. 131 133 } 132 134 133 135 var autosave = function() { -
wp-includes/script-loader.php
old new 47 47 'broken' => __('An unidentified error has occurred.') 48 48 ) ); 49 49 50 $this->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '2008042 2' );50 $this->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '20080424' ); 51 51 52 52 $this->add( 'wp-ajax', '/wp-includes/js/wp-ajax.js', array('prototype'), '20070306'); 53 53 $this->localize( 'wp-ajax', 'WPAjaxL10n', array( -
wp-admin/css/colors-fresh.css
old new 188 188 border-color: #80b5d0; 189 189 } 190 190 191 .button[disabled], .button:disabled { 192 background-color: #999; 193 } 194 191 195 .submit input:hover, .button:hover, #edit-slug-buttons a.save:hover { 192 196 border-color: #535353; 193 197 } -
wp-admin/css/colors-classic.css
old new 192 192 border-color: #a3a3a3; 193 193 } 194 194 195 .button[disabled], .button:disabled { 196 background-color: #999; 197 } 198 195 199 .tablenav .button-secondary { 196 200 border-color: #5396c5; 197 201 }
