diff options
author | tsmgeek <tsmgeek@gmail.com> | 2017-08-22 00:21:29 +0100 |
---|---|---|
committer | tsmgeek <tsmgeek@gmail.com> | 2017-08-22 00:21:29 +0100 |
commit | fdf35488b5b3cd5725c6c2e179b65377d30c6577 (patch) | |
tree | da0b3927f3049475cd67977fe093d198920c1c37 /web/app/view/edit/AttributeAliasesController.js | |
parent | f8b98b236fd676fe8945d942842640ddea5bbac8 (diff) | |
parent | e0bb9b92d07176677b3043530660af3bc30774d7 (diff) | |
download | trackermap-web-fdf35488b5b3cd5725c6c2e179b65377d30c6577.tar.gz trackermap-web-fdf35488b5b3cd5725c6c2e179b65377d30c6577.tar.bz2 trackermap-web-fdf35488b5b3cd5725c6c2e179b65377d30c6577.zip |
Merge from upstream, change .eslintrc.json
Diffstat (limited to 'web/app/view/edit/AttributeAliasesController.js')
-rw-r--r-- | web/app/view/edit/AttributeAliasesController.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/app/view/edit/AttributeAliasesController.js b/web/app/view/edit/AttributeAliasesController.js index d1beb135..8ac68bcb 100644 --- a/web/app/view/edit/AttributeAliasesController.js +++ b/web/app/view/edit/AttributeAliasesController.js @@ -61,13 +61,13 @@ Ext.define('Traccar.view.edit.AttributeAliasesController', { this.lookupReference('toolbarRemoveButton').setDisabled(disabled); }, - onDeviceChange: function (combobox, newValue, oldValue) { + onDeviceChange: function (combobox, value) { var manager = Traccar.app.getUser().get('admin') || Traccar.app.getUser().get('userLimit') > 0; this.onSelectionChange(); - if (newValue !== null) { - this.getView().getStore().filter('deviceId', newValue); + if (value !== null) { + this.getView().getStore().filter('deviceId', value); if (manager && this.getView().getStore().getCount() === 0) { - Ext.getStore('AttributeAliases').getProxy().setExtraParam('deviceId', newValue); + Ext.getStore('AttributeAliases').getProxy().setExtraParam('deviceId', value); Ext.getStore('AttributeAliases').load({ addRecords: true }); |