aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-18 21:23:45 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-18 21:24:01 +1200
commitde3a9b3cdf1386b72dbd2e3b34d3fe8caa808601 (patch)
tree980d07bfd72f0d2a8658ffe6eb5a30c6f20645da /web/app/view
parentaf256a07e31d65013c294962ad42443d6e50c5f5 (diff)
downloadtrackermap-web-de3a9b3cdf1386b72dbd2e3b34d3fe8caa808601.tar.gz
trackermap-web-de3a9b3cdf1386b72dbd2e3b34d3fe8caa808601.tar.bz2
trackermap-web-de3a9b3cdf1386b72dbd2e3b34d3fe8caa808601.zip
Enable edit buttons on selection
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/edit/ToolbarController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/edit/ToolbarController.js b/web/app/view/edit/ToolbarController.js
index 2b2297a9..d3ca9de6 100644
--- a/web/app/view/edit/ToolbarController.js
+++ b/web/app/view/edit/ToolbarController.js
@@ -63,7 +63,7 @@ Ext.define('Traccar.view.edit.ToolbarController', {
},
onSelectionChange: function (selection, selected) {
- var disabled = selected.length > 0;
+ var disabled = selected.length === 0;
this.lookupReference('toolbarEditButton').setDisabled(disabled);
this.lookupReference('toolbarRemoveButton').setDisabled(disabled);
}