JS: in event callbacks replace the very outdated return false with preventDefault().

Props adamsilverstein.
Fixes #18590.
Built from https://develop.svn.wordpress.org/trunk@34977


git-svn-id: http://core.svn.wordpress.org/trunk@34942 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz
2015-10-09 01:27:27 +00:00
parent b23005d7c1
commit a6cf0b41a6
15 changed files with 43 additions and 42 deletions
+2 -3
View File
@@ -67,7 +67,8 @@ jQuery(document).ready( function($) {
$( '#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]' ).prop( 'disabled' , false );
t = $('#quick-press').submit( function() {
t = $('#quick-press').submit( function( e ) {
e.preventDefault();
$('#dashboard_quick_press #publishing-action .spinner').show();
$('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', true);
@@ -87,8 +88,6 @@ jQuery(document).ready( function($) {
latestPost.css('background', 'none');
}, 1000);
}
return false;
} );
$('#publish').click( function() { act.val( 'post-quickpress-publish' ); } );