aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-05-23 15:43:07 +0500
committerAbyss777 <abyss@fox5.ru>2017-05-23 15:43:07 +0500
commitdbf31c907fb261dbc02463e2582a1c1a05ab3657 (patch)
treee742b51bd3e1490dac798af9cd6c152087decdac /web/app/view/dialog
parent0b2fa6cd0c1221e559bbe48bffea6ce8ba7e749a (diff)
downloadtrackermap-web-dbf31c907fb261dbc02463e2582a1c1a05ab3657.tar.gz
trackermap-web-dbf31c907fb261dbc02463e2582a1c1a05ab3657.tar.bz2
trackermap-web-dbf31c907fb261dbc02463e2582a1c1a05ab3657.zip
If optimization
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 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);
}