Replace jQuery.submit()

This commit is contained in:
Kathy Daring 2021-01-07 15:00:14 -07:00
parent cc0714f612
commit 80a8d66106
3 changed files with 6 additions and 6 deletions

View File

@ -547,9 +547,9 @@ jQuery( function( $ ) {
callerid = postForm.data( 'callerid' );
if ( 'publish' === callerid ) {
postForm.append('<input type="hidden" name="publish" value="1" />').submit();
postForm.append('<input type="hidden" name="publish" value="1" />').trigger( 'submit' );
} else {
postForm.append('<input type="hidden" name="save-post" value="1" />').submit();
postForm.append('<input type="hidden" name="save-post" value="1" />').trigger( 'submit' );
}
},

View File

@ -37,7 +37,7 @@ jQuery( function( $ ) {
} );
$( document.body ).on( 'wc_backbone_modal_response', function() {
form.unbind( 'submit' ).submit();
form.unbind( 'submit' ).trigger( 'submit' );
} );
$( '#wc_tracker_checkbox_dialog' ).on( 'change', function( e ) {
@ -46,7 +46,7 @@ jQuery( function( $ ) {
} );
$( '#wc_tracker_submit' ).on( 'click', function () {
form.unbind( 'submit' ).submit();
form.unbind( 'submit' ).trigger( 'submit' );
} );
return true;
@ -182,7 +182,7 @@ jQuery( function( $ ) {
} );
function submitActivateForm() {
$( 'form.activate-jetpack' ).submit();
$( 'form.activate-jetpack' ).trigger( 'submit' );
}
function waitForJetpackInstall() {

View File

@ -2,7 +2,7 @@
jQuery( function( $ ) {
// Orderby
$( '.woocommerce-ordering' ).on( 'change', 'select.orderby', function() {
$( this ).closest( 'form' ).submit();
$( this ).closest( 'form' ).trigger( 'submit' );
});
// Target quantity inputs on product pages