Ticket #23216: 23216-autosave.diff
File 23216-autosave.diff, 574 bytes (added by , 11 years ago) |
---|
-
wp-includes/js/autosave.js
246 246 247 247 function autosave_enable_buttons() { 248 248 jQuery(document).trigger('autosave-enable-buttons'); 249 if ( ! wp.heartbeat .hasConnectionError() ) {249 if ( ! wp.heartbeat || ! wp.heartbeat.hasConnectionError() ) { 250 250 // delay that a bit to avoid some rare collisions while the DOM is being updated. 251 251 setTimeout(function(){ 252 252 var parent = jQuery('#submitpost');