|
@@ -176,6 +176,13 @@ export default class Dialog {
|
176
|
176
|
});
|
177
|
177
|
this.$el = this.window.$el;
|
178
|
178
|
|
|
179
|
+ AJS.dialog2(selector).on("hide", function() {
|
|
180
|
+ if (this.onCloseCallback) {
|
|
181
|
+ this.onCloseCallback();
|
|
182
|
+ this.onCloseCallback = null;
|
|
183
|
+ }
|
|
184
|
+ }.bind(this));
|
|
185
|
+
|
179
|
186
|
this.setState();
|
180
|
187
|
}
|
181
|
188
|
|
|
@@ -201,11 +208,6 @@ export default class Dialog {
|
201
|
208
|
|
202
|
209
|
hide() {
|
203
|
210
|
this.window.hide();
|
204
|
|
-
|
205
|
|
- if (this.onCloseCallback) {
|
206
|
|
- this.onCloseCallback();
|
207
|
|
- this.onCloseCallback = null;
|
208
|
|
- }
|
209
|
211
|
}
|
210
|
212
|
|
211
|
213
|
onFeedbackSubmitted() {
|