Merge pull request #7945 from shivapoudel/before-update

Introduce trigger wc_backbone_modal_before_update
This commit is contained in:
Claudio Sanches 2015-04-13 16:06:05 -03:00
commit bf0a180c23
1 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,8 @@
getFormData: function() {
var data = {};
$( document.body ).trigger( 'wc_backbone_modal_before_update', this._target );
$.each( $( 'form', this.$el ).serializeArray(), function( index, item ) {
if ( data.hasOwnProperty( item.name ) ) {
data[ item.name ] = $.makeArray( data[ item.name ] );