Skip to content

Commit baba675

Browse files
committed
Merge pull request #3597 in SW/shopware from sw-15034/5.2/fix-unresolved-js-variable-error to 5.2
* commit '45c4ad27158c5e70ebb85fecdff5e9418c93ed44': SW-15034 - Fix unresolved js variable error
2 parents 0b8df8c + 45c4ad2 commit baba675

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

themes/Frontend/Responsive/frontend/_public/src/js/jquery.address-editor.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@
138138
}
139139
};
140140

141-
event.preventDefault();
142-
143141
if (window.StateManager._getCurrentDevice() === 'mobile') {
144142
sizing = 'auto';
145143
}
@@ -170,7 +168,7 @@
170168
$.unsubscribe(me.getEventName('plugin/swModal/onOpen'));
171169
});
172170

173-
$.publish('plugin/swAddressEditor/onAddressFetchSuccess', [ me, event, data ]);
171+
$.publish('plugin/swAddressEditor/onAddressFetchSuccess', [ me, data ]);
174172
}
175173
});
176174

@@ -248,7 +246,7 @@
248246
actionData[this.name] = this.value;
249247
});
250248

251-
$.publish('plugin/swAddressEditor/onBeforeSave', [ me, event, actionData ]);
249+
$.publish('plugin/swAddressEditor/onBeforeSave', [ me, actionData ]);
252250

253251
// send data to api endpoint
254252
$.ajax({

themes/Frontend/Responsive/frontend/_public/src/js/jquery.address-selection.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
$.overlay.open({ closeOnClick: false });
123123
$.loadingIndicator.open({ openOverlay: false });
124124

125-
$.publish('plugin/swAddressSelection/onBeforeAddressFetch', [ me, event ]);
125+
$.publish('plugin/swAddressSelection/onBeforeAddressFetch', [ me ]);
126126

127127
// Ajax request to fetch available addresses
128128
$.ajax({
@@ -145,7 +145,7 @@
145145
$.unsubscribe(me.getEventName('plugin/swModal/onOpen'));
146146
});
147147

148-
$.publish('plugin/swAddressSelection/onAddressFetchSuccess', [ me, event, data ]);
148+
$.publish('plugin/swAddressSelection/onAddressFetchSuccess', [ me, data ]);
149149
}
150150
});
151151
},
@@ -197,7 +197,7 @@
197197

198198
event.preventDefault();
199199

200-
$.publish('plugin/swAddressSelection/onBeforeSave', [ me, event, $target ]);
200+
$.publish('plugin/swAddressSelection/onBeforeSave', [ me, $target ]);
201201

202202
// send data to api endpoint
203203
$.ajax({

0 commit comments

Comments
 (0)