aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog/SelectDeviceController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/dialog/SelectDeviceController.js')
-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 7b7277cf..9ed5e217 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);
}