aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/AttributesController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-07-18 11:12:14 +0500
committerAbyss777 <abyss@fox5.ru>2016-07-18 11:12:14 +0500
commit94ea366eb33694447812e6d63133aea28379d6f4 (patch)
treedac204b1fa084c4cfdab8cfec932edebedbe9624 /web/app/view/AttributesController.js
parentd3e063cf9de8a45bed4dfe87b73aadfd8d2edeab (diff)
downloadtrackermap-server-94ea366eb33694447812e6d63133aea28379d6f4.tar.gz
trackermap-server-94ea366eb33694447812e6d63133aea28379d6f4.tar.bz2
trackermap-server-94ea366eb33694447812e6d63133aea28379d6f4.zip
- Added attributes to devices
- Fixed license header for DeviceManager.java - Fixed editing attributes for not saved (new) object.
Diffstat (limited to 'web/app/view/AttributesController.js')
-rw-r--r--web/app/view/AttributesController.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/app/view/AttributesController.js b/web/app/view/AttributesController.js
index 8e6ab82a4..c042b765f 100644
--- a/web/app/view/AttributesController.js
+++ b/web/app/view/AttributesController.js
@@ -27,6 +27,9 @@ Ext.define('Traccar.view.AttributesController', {
var store, propertyName, i = 0, attributes;
store = Ext.create('Traccar.store.Attributes');
store.setProxy(Ext.create('Ext.data.proxy.Memory'));
+ if (this.getView().record.phantom) {
+ this.getView().record.set('attributes', {});
+ }
attributes = this.getView().record.get('attributes');
for (propertyName in attributes) {
if (attributes.hasOwnProperty(propertyName)) {