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:
@@ -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' ); } );
|
||||
|
||||
Reference in New Issue
Block a user