Ticket #22491: 22491.5.diff
File 22491.5.diff, 781 bytes (added by , 12 years ago) |
---|
-
wp-admin/edit-form-advanced.php
457 457 if ( changed ) 458 458 return '<?php _e('The changes you made will be lost if you navigate away from this page.'); ?>'; 459 459 }; 460 461 $('input[type="submit"], a.submitdelete', '#submitpost').click(function(){ 462 window.onbeforeunload = null; 463 $(':button, :submit', '#submitpost').each(function(){ 464 var t = $(this); 465 if ( t.hasClass('button-primary') ) 466 t.addClass('button-primary-disabled'); 467 else 468 t.addClass('button-disabled'); 469 }); 470 $('#major-publishing-actions .spinner').show(); 471 }); 460 472 })(jQuery); 461 473 </script> 462 474 <?php } ?>