Replace jQuery.submit()
This commit is contained in:
parent
cc0714f612
commit
80a8d66106
|
@ -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' );
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue