aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-11-08 11:52:54 +0500
committerAbyss777 <abyss@fox5.ru>2016-11-08 11:52:54 +0500
commit7aaa4418b81a9d7686969715198b4b639c263b79 (patch)
tree871098940271f456210825f61b9b4ddb8663cab0 /web
parent8b5bbc7a899205a40e1d246862f54ecb4b939682 (diff)
downloadetbsa-traccar-web-7aaa4418b81a9d7686969715198b4b639c263b79.tar.gz
etbsa-traccar-web-7aaa4418b81a9d7686969715198b4b639c263b79.tar.bz2
etbsa-traccar-web-7aaa4418b81a9d7686969715198b4b639c263b79.zip
Remove store constructor
Diffstat (limited to 'web')
-rw-r--r--web/app/store/DeviceImages.js17
1 files changed, 5 insertions, 12 deletions
diff --git a/web/app/store/DeviceImages.js b/web/app/store/DeviceImages.js
index 4e49482..22a7872 100644
--- a/web/app/store/DeviceImages.js
+++ b/web/app/store/DeviceImages.js
@@ -22,37 +22,30 @@ Ext.define('Traccar.store.DeviceImages', {
data: [{
key: 'default',
name: Strings.categoryDefault,
- elementId: 'arrowSvg',
+ svg: document.getElementById('arrowSvg').contentDocument,
rotateId: 'arrow',
fillId: 'arrow',
scale: 1
}, {
key: 'car',
name: Strings.categoryCar,
- elementId: 'carSvg',
+ svg: document.getElementById('carSvg').contentDocument,
fillId: 'path4149',
rotateId: 'g4207',
scale: 0.06,
}, {
key: 'bus',
name: Strings.categoryBus,
- elementId: 'busSvg',
+ svg: document.getElementById('busSvg').contentDocument,
fillId: 'path4713',
rotateId: 'layer2',
scale: 0.12,
}, {
key: 'truck',
name: Strings.categoryTruck,
- elementId: 'truckSvg',
+ svg: document.getElementById('truckSvg').contentDocument,
fillId: 'path4718',
rotateId: 'layer2',
scale: 0.1,
- }],
-
- constructor: function() {
- this.callParent(arguments);
- this.config.data.forEach(function (device) {
- device.svg = document.getElementById(device.elementId).contentDocument;
- });
- }
+ }]
}); \ No newline at end of file