Trigger an action when the variation form is attached
This commit is contained in:
parent
d3de355cf5
commit
9684ad95f7
|
@ -37,7 +37,7 @@
|
|||
this.find('.variations select').unbind( 'change focusin' );
|
||||
|
||||
// Bind events
|
||||
return this
|
||||
$form = this
|
||||
|
||||
// On clicking the reset variation button
|
||||
.on( 'click', '.reset_variations', function( event ) {
|
||||
|
@ -394,6 +394,9 @@
|
|||
$single_variation_wrap.slideDown('200').trigger( 'show_variation', [ variation ] );
|
||||
|
||||
});
|
||||
|
||||
$form.trigger('wc_variation_form');
|
||||
return $form;
|
||||
};
|
||||
|
||||
$('form.variations_form').wc_variation_form();
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue