... |
... |
@@ -173,10 +173,7 @@ |
173 |
173 |
this.dialog.closeDialog(); |
174 |
174 |
}.bindAsEventListener(this), |
175 |
175 |
onFailure : function(response) { |
176 |
|
- var failureReason = response.statusText; |
177 |
|
- if (response.statusText == '' /* No response */ || response.status == 12031 /* In IE */) { |
178 |
|
- failureReason = 'Server not responding'; |
179 |
|
- } |
|
176 |
+ var failureReason = response.statusText || 'Server not responding'; |
180 |
180 |
if (targetElement._x_notif) { |
181 |
181 |
targetElement._x_notif.replace(new XWiki.widgets.Notification("$services.localization.render('core.widgets.confirmationBox.notification.failed')" + failureReason, "error")); |
182 |
182 |
} else { |
... |
... |
@@ -183,9 +183,6 @@ |
183 |
183 |
new XWiki.widgets.Notification(this.interactionParameters.failureMessageText + failureReason, "error"); |
184 |
184 |
} |
185 |
185 |
}, |
186 |
|
- on1223 : function(response) { |
187 |
|
- response.request.options.onSuccess(response); |
188 |
|
- }, |
189 |
189 |
on0 : function(response) { |
190 |
190 |
response.request.options.onFailure(response); |
191 |
191 |
}, |