diff options
author | Abyss777 <abyss@fox5.ru> | 2016-06-27 14:34:37 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-06-27 14:34:37 +0500 |
commit | 1972191b8802f3f9295cb151202c50d115a87f0e (patch) | |
tree | ab0ab29708fdb7fb35a792d3961bd5f180fc8fba /web/app/view/Notifications.js | |
parent | 6c0c508ef8afe602a12dbeb2b68ea708fdffedd2 (diff) | |
download | trackermap-server-1972191b8802f3f9295cb151202c50d115a87f0e.tar.gz trackermap-server-1972191b8802f3f9295cb151202c50d115a87f0e.tar.bz2 trackermap-server-1972191b8802f3f9295cb151202c50d115a87f0e.zip |
Do not use plane record fields to handle attributes nested fields
Diffstat (limited to 'web/app/view/Notifications.js')
-rw-r--r-- | web/app/view/Notifications.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/app/view/Notifications.js b/web/app/view/Notifications.js index 8efebd038..2ae980afe 100644 --- a/web/app/view/Notifications.js +++ b/web/app/view/Notifications.js @@ -43,7 +43,11 @@ Ext.define('Traccar.view.Notifications', { xtype: 'checkcolumn', flex: 1, listeners: { + beforeCheckChange: 'onBeforeCheckChange', checkChange: 'onCheckChange' + }, + renderer: function (value, metaData, record) { + return (new Ext.ux.CheckColumn()).renderer(record.getData().attributes.web, metaData); } }, { text: Strings.notificationMail, @@ -51,7 +55,11 @@ Ext.define('Traccar.view.Notifications', { xtype: 'checkcolumn', flex: 1, listeners: { + beforeCheckChange: 'onBeforeCheckChange', checkChange: 'onCheckChange' + }, + renderer: function (value, metaData, record) { + return (new Ext.ux.CheckColumn()).renderer(record.getData().attributes.mail, metaData); } }], |