Trigger do_variation_action + '_ajax_data'

To allow extensions which add their own variation bulk actions to pass
data back to WooCommerce core's handler so that only one ajax call
is necessary for updating the data.

Previously, a duplicate ajax call would be required as trigger() does
not capture the callbacks return value.
This commit is contained in:
Brent Shepherd 2015-07-21 15:36:30 -07:00
parent d36970aad8
commit 23418214d0
1 changed files with 1 additions and 0 deletions

View File

@ -666,6 +666,7 @@ jQuery( function( $ ) {
break;
default :
$( 'select.variation_actions' ).trigger( do_variation_action );
data = $( 'select.variation_actions' ).triggerHandler( do_variation_action + '_ajax_data', data );
break;
}