Merge pull request #7945 from shivapoudel/before-update
Introduce trigger wc_backbone_modal_before_update
This commit is contained in:
commit
bf0a180c23
|
@ -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 ] );
|
||||
|
|
Loading…
Reference in New Issue