diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-09 13:26:33 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-09 13:26:33 +1200 |
commit | fe7b8bd58e23e289a041bc7c9a5d6c37f085419a (patch) | |
tree | d28b58d1ea3b4fcd6c715c4f2d2e2e04cb91c208 /web/app/view/NotificationsController.js | |
parent | 70d22de4205aec294660378f0d854cbc32c7a6b8 (diff) | |
download | traccar-server-fe7b8bd58e23e289a041bc7c9a5d6c37f085419a.tar.gz traccar-server-fe7b8bd58e23e289a041bc7c9a5d6c37f085419a.tar.bz2 traccar-server-fe7b8bd58e23e289a041bc7c9a5d6c37f085419a.zip |
Fix issues in JavaScript code
Diffstat (limited to 'web/app/view/NotificationsController.js')
-rw-r--r-- | web/app/view/NotificationsController.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/web/app/view/NotificationsController.js b/web/app/view/NotificationsController.js index a7c4290ca..90479fe07 100644 --- a/web/app/view/NotificationsController.js +++ b/web/app/view/NotificationsController.js @@ -47,11 +47,12 @@ Ext.define('Traccar.view.NotificationsController', { }, onBeforeCheckChange: function (column, rowIndex, checked, eOpts) { - var fields = column.dataIndex.split('\.',2); - var record = this.getView().getStore().getAt(rowIndex); - var data = record.get(fields[0]); + var fields, record, data; + fields = column.dataIndex.split('\.', 2); + record = this.getView().getStore().getAt(rowIndex); + data = record.get(fields[0]); if (!data[fields[1]]) { - data[fields[1]] = "true"; + data[fields[1]] = 'true'; } else { delete data[fields[1]]; } |