diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-07-18 21:23:45 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-07-18 21:24:01 +1200 |
commit | de3a9b3cdf1386b72dbd2e3b34d3fe8caa808601 (patch) | |
tree | 980d07bfd72f0d2a8658ffe6eb5a30c6f20645da | |
parent | af256a07e31d65013c294962ad42443d6e50c5f5 (diff) | |
download | trackermap-web-de3a9b3cdf1386b72dbd2e3b34d3fe8caa808601.tar.gz trackermap-web-de3a9b3cdf1386b72dbd2e3b34d3fe8caa808601.tar.bz2 trackermap-web-de3a9b3cdf1386b72dbd2e3b34d3fe8caa808601.zip |
Enable edit buttons on selection
-rw-r--r-- | web/app/view/edit/ToolbarController.js | 2 |
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); } |