diff options
author | Abyss777 <abyss@fox5.ru> | 2016-11-10 12:08:25 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-11-10 12:08:25 +0500 |
commit | 185a6e4b3518ea7cebac33430751507b1bb94994 (patch) | |
tree | 808c8c1c454a5e21eff261d448d700a1d5cb2afe /web/app/store | |
parent | 26ecb43bc27087ae1f7aac8a8b0ffa8421b846d9 (diff) | |
download | trackermap-web-185a6e4b3518ea7cebac33430751507b1bb94994.tar.gz trackermap-web-185a6e4b3518ea7cebac33430751507b1bb94994.tar.bz2 trackermap-web-185a6e4b3518ea7cebac33430751507b1bb94994.zip |
- Implement category selector for DeviceDialog
- Fix jscs and jshint issues
Diffstat (limited to 'web/app/store')
-rw-r--r-- | web/app/store/DeviceImages.js | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/web/app/store/DeviceImages.js b/web/app/store/DeviceImages.js index 64a78556..efe8606a 100644 --- a/web/app/store/DeviceImages.js +++ b/web/app/store/DeviceImages.js @@ -17,12 +17,12 @@ */ Ext.define('Traccar.store.DeviceImages', { extend: 'Ext.data.Store', - fields: ['key', 'name', 'svg', 'fillId', 'rotateId', 'scaleId', 'scale'], + fields: ['key', 'name', 'svg', 'fillId', 'rotateId', 'scaleId'], data: [{ - key: 'route', - name: Strings.categoryRoute, - svg: document.getElementById('routeSvg').contentDocument, + key: 'arrow', + name: Strings.categoryArrow, + svg: document.getElementById('arrowSvg').contentDocument, fillId: 'arrow', rotateId: 'arrow', scaleId: 'arrow' @@ -30,64 +30,64 @@ Ext.define('Traccar.store.DeviceImages', { key: 'default', name: Strings.categoryDefault, svg: document.getElementById('defaultSvg').contentDocument, - fillId: ['path4148', 'path4149'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'car', name: Strings.categoryCar, svg: document.getElementById('carSvg').contentDocument, - fillId: ['path4148', 'path4157'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'bus', name: Strings.categoryBus, svg: document.getElementById('busSvg').contentDocument, - fillId: ['path4148', 'path4200'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'truck', name: Strings.categoryTruck, svg: document.getElementById('truckSvg').contentDocument, - fillId: ['path4148', 'path4336'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'ship', name: Strings.categoryShip, svg: document.getElementById('shipSvg').contentDocument, - fillId: ['path4148', 'path4177'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'plane', name: Strings.categoryPlane, svg: document.getElementById('planeSvg').contentDocument, - fillId: ['path4148', 'path4203'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'motorcycle', name: Strings.categoryMotorcycle, svg: document.getElementById('motorcycleSvg').contentDocument, - fillId: ['path4148', 'path4256'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'bicycle', name: Strings.categoryBicycle, svg: document.getElementById('bicycleSvg').contentDocument, - fillId: ['path4148', 'path4282'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'person', name: Strings.categoryPerson, svg: document.getElementById('personSvg').contentDocument, - fillId: ['path4148', 'path4308'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }] -});
\ No newline at end of file +}); |