Added logic to return on custom actions
This change adds the possibility for custom actions to return prematurely before the AJAX request is sent.
This commit is contained in:
parent
77ccfc56ca
commit
06894169da
|
@ -807,6 +807,10 @@ jQuery( function( $ ) {
|
||||||
default :
|
default :
|
||||||
$( 'select.variation_actions' ).trigger( do_variation_action );
|
$( 'select.variation_actions' ).trigger( do_variation_action );
|
||||||
data = $( 'select.variation_actions' ).triggerHandler( do_variation_action + '_ajax_data', data );
|
data = $( 'select.variation_actions' ).triggerHandler( do_variation_action + '_ajax_data', data );
|
||||||
|
|
||||||
|
if ( true === data.cancel ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue