aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/DeviceMenuController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-09-20 10:52:31 +0500
committerAbyss777 <abyss@fox5.ru>2017-09-20 10:52:31 +0500
commitac102b14c7ef665542eeb9f6aae69c6ccb023929 (patch)
treeb96a5f22baf7f3c13ca8cd3bc27c050d1f6ee20a /web/app/view/DeviceMenuController.js
parent3a5e334b50bf35d11743d937c9fae2fb8c7829ec (diff)
downloadetbsa-traccar-web-ac102b14c7ef665542eeb9f6aae69c6ccb023929.tar.gz
etbsa-traccar-web-ac102b14c7ef665542eeb9f6aae69c6ccb023929.tar.bz2
etbsa-traccar-web-ac102b14c7ef665542eeb9f6aae69c6ccb023929.zip
- Change string
- Use "up" method - Remove spaces
Diffstat (limited to 'web/app/view/DeviceMenuController.js')
-rw-r--r--web/app/view/DeviceMenuController.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/app/view/DeviceMenuController.js b/web/app/view/DeviceMenuController.js
index 58749a5..4fa00be 100644
--- a/web/app/view/DeviceMenuController.js
+++ b/web/app/view/DeviceMenuController.js
@@ -45,7 +45,7 @@ Ext.define('Traccar.view.DeviceMenuController', {
baseObjectName: 'deviceId',
linkObjectName: 'geofenceId',
storeName: 'Geofences',
- baseObject: this.getView().ownerCmp.device.getId()
+ baseObject: this.getView().up('deviceMenu').device.getId()
}
}).show();
},
@@ -58,7 +58,7 @@ Ext.define('Traccar.view.DeviceMenuController', {
baseObjectName: 'deviceId',
linkObjectName: 'notificationId',
storeName: 'Notifications',
- baseObject: this.getView().ownerCmp.device.getId()
+ baseObject: this.getView().up('deviceMenu').device.getId()
}
}).show();
},
@@ -71,7 +71,7 @@ Ext.define('Traccar.view.DeviceMenuController', {
baseObjectName: 'deviceId',
linkObjectName: 'attributeId',
storeName: 'ComputedAttributes',
- baseObject: this.getView().ownerCmp.device.getId()
+ baseObject: this.getView().up('deviceMenu').device.getId()
}
}).show();
},
@@ -84,7 +84,7 @@ Ext.define('Traccar.view.DeviceMenuController', {
baseObjectName: 'deviceId',
linkObjectName: 'driverId',
storeName: 'Drivers',
- baseObject: this.getView().ownerCmp.device.getId()
+ baseObject: this.getView().up('deviceMenu').device.getId()
}
}).show();
},
@@ -97,7 +97,7 @@ Ext.define('Traccar.view.DeviceMenuController', {
baseObjectName: 'deviceId',
linkObjectName: 'commandId',
storeName: 'Commands',
- baseObject: this.getView().ownerCmp.device.getId()
+ baseObject: this.getView().up('deviceMenu').device.getId()
}
}).show();
}