allow product variations data refresh

This commit is contained in:
Manos Psychogyiopoulos 2015-07-28 15:34:04 +03:00
parent f19ba7a755
commit dae10a962c
1 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,12 @@
return false;
} )
// Reload product variations data
.on( 'reload_product_variations', function() {
$product_variations = $form.data( 'product_variations' );
$use_ajax = $product_variations === false;
} )
// Reset product data
.on( 'reset_data', function() {
var to_reset = {