aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/dialog')
-rw-r--r--web/app/view/dialog/SelectDeviceController.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/web/app/view/dialog/SelectDeviceController.js b/web/app/view/dialog/SelectDeviceController.js
index 7b7277c..9ed5e21 100644
--- a/web/app/view/dialog/SelectDeviceController.js
+++ b/web/app/view/dialog/SelectDeviceController.js
@@ -30,11 +30,7 @@ Ext.define('Traccar.view.dialog.SelectDeviceController', {
jsonData: Ext.util.JSON.encode(record),
callback: function (options, success, response) {
if (success) {
- if (response.responseText) {
- Ext.Msg.alert(Strings.sharedInfoTitle, response.responseText);
- } else if (response.statusText) {
- Ext.Msg.alert(Strings.sharedInfoTitle, response.statusText);
- }
+ Ext.Msg.alert(Strings.sharedInfoTitle, response.responseText || response.statusText);
} else {
Traccar.app.showError(response);
}