Trigger an action when the variation form is attached

This commit is contained in:
Mike Jolley 2013-06-17 13:53:21 +01:00
parent d3de355cf5
commit 9684ad95f7
2 changed files with 5 additions and 2 deletions

View File

@ -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