aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog/SelectDeviceController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-05-23 15:23:07 +0500
committerAbyss777 <abyss@fox5.ru>2017-05-23 15:23:07 +0500
commit7f1a29d1f6606cd7d6469f769fd0e303badcd591 (patch)
tree93cc074eae61fe2b20ac2fa247ca61e2744daeaa /web/app/view/dialog/SelectDeviceController.js
parentd243caa095ece5c130250d02e4f3ae7632a9db36 (diff)
downloadtrackermap-web-7f1a29d1f6606cd7d6469f769fd0e303badcd591.tar.gz
trackermap-web-7f1a29d1f6606cd7d6469f769fd0e303badcd591.tar.bz2
trackermap-web-7f1a29d1f6606cd7d6469f769fd0e303badcd591.zip
- Revert showError function
- Fix strings
Diffstat (limited to 'web/app/view/dialog/SelectDeviceController.js')
-rw-r--r--web/app/view/dialog/SelectDeviceController.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/web/app/view/dialog/SelectDeviceController.js b/web/app/view/dialog/SelectDeviceController.js
index 4336c48b..d8cd5d3a 100644
--- a/web/app/view/dialog/SelectDeviceController.js
+++ b/web/app/view/dialog/SelectDeviceController.js
@@ -29,7 +29,17 @@ Ext.define('Traccar.view.dialog.SelectDeviceController', {
method: 'POST',
jsonData: Ext.util.JSON.encode(record),
callback: function (options, success, response) {
- Traccar.app.showError(response, success);
+ if (success) {
+ if (response.responseText) {
+ Ext.Msg.alert(Strings.sharedInfoTitle, Strings.sharedInfoGeneral +
+ '<br><br><textarea readonly rows="5" style="resize: none; width: 100%;">' +
+ response.responseText + '</textarea>');
+ } else if (response.statusText) {
+ Ext.Msg.alert(Strings.sharedInfoTitle, response.statusText);
+ }
+ } else {
+ Traccar.app.showError(response);
+ }
}
});
button.up('window').close();