aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/permissions/BaseController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-05 09:51:08 +1200
committerGitHub <noreply@github.com>2017-04-05 09:51:08 +1200
commita077f0fde3e1bc67ed3fb6f9ee3e4a0f1837a703 (patch)
tree0d3ebf4060a512826dad65bd2b4ed08e6460a73f /web/app/view/permissions/BaseController.js
parent247a6bd4193077bd77608aca87d4e912f2c028ac (diff)
parent577c3c1ae8bbe07110c4a7ce73c1db0b7d5fee82 (diff)
downloadtrackermap-web-a077f0fde3e1bc67ed3fb6f9ee3e4a0f1837a703.tar.gz
trackermap-web-a077f0fde3e1bc67ed3fb6f9ee3e4a0f1837a703.tar.bz2
trackermap-web-a077f0fde3e1bc67ed3fb6f9ee3e4a0f1837a703.zip
Merge pull request #466 from Abyss777/fix_465
Suppress events on failure to avoid infinite loop
Diffstat (limited to 'web/app/view/permissions/BaseController.js')
-rw-r--r--web/app/view/permissions/BaseController.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/permissions/BaseController.js b/web/app/view/permissions/BaseController.js
index dc4d6ef2..8a85a5e2 100644
--- a/web/app/view/permissions/BaseController.js
+++ b/web/app/view/permissions/BaseController.js
@@ -57,7 +57,7 @@ Ext.define('Traccar.view.permissions.BaseController', {
jsonData: Ext.util.JSON.encode(data),
callback: function (options, success, response) {
if (!success) {
- selection.deselect(record);
+ selection.deselect(record, true);
Traccar.app.showError(response);
}
}
@@ -75,7 +75,7 @@ Ext.define('Traccar.view.permissions.BaseController', {
jsonData: Ext.util.JSON.encode(data),
callback: function (options, success, response) {
if (!success) {
- selection.select(record);
+ selection.select(record, true, true);
Traccar.app.showError(response);
}
}