aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-04-16 11:54:48 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-04-16 11:54:48 +1200
commit24ef58447149502dd3fff68d0c9920115a25df31 (patch)
treec7b1f2760da275ab57f5cac8e5d96330b3422034 /web
parentef25655365eb97d29295f8e0cb720b86a29c5e26 (diff)
downloadtrackermap-server-24ef58447149502dd3fff68d0c9920115a25df31.tar.gz
trackermap-server-24ef58447149502dd3fff68d0c9920115a25df31.tar.bz2
trackermap-server-24ef58447149502dd3fff68d0c9920115a25df31.zip
Remove grouping from device list
Diffstat (limited to 'web')
-rw-r--r--web/app/view/Devices.js13
-rw-r--r--web/app/view/DevicesController.js12
2 files changed, 0 insertions, 25 deletions
diff --git a/web/app/view/Devices.js b/web/app/view/Devices.js
index ae46ba080..366831849 100644
--- a/web/app/view/Devices.js
+++ b/web/app/view/Devices.js
@@ -37,19 +37,6 @@ Ext.define('Traccar.view.Devices', {
title: Strings.deviceTitle,
selType: 'rowmodel',
- features: [{
- ftype: 'grouping',
- groupHeaderTpl: Ext.create('Ext.XTemplate', '{name:this.getGroupName}', {
- getGroupName: function (v) {
- var groupId = Number(v);
- if (groupId) {
- return Ext.getStore('Groups').getById(groupId).get('name');
- } else {
- return Strings.groupNoGroup;
- }
- }
- })
- }],
tbar: {
xtype: 'editToolbar',
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js
index 1d4e3212f..e9a075ffc 100644
--- a/web/app/view/DevicesController.js
+++ b/web/app/view/DevicesController.js
@@ -30,22 +30,10 @@ Ext.define('Traccar.view.DevicesController', {
selectDevice: 'selectDevice',
selectReport: 'selectReport'
}
- },
- store: {
- '#Groups': {
- update: 'reloadList'
- },
- '#Devices': {
- add: 'reloadList'
- }
}
}
},
- reloadList: function() {
- Ext.getStore('Devices').reload();
- },
-
init: function () {
var readonly = Traccar.app.getServer().get('readonly') && !Traccar.app.getUser().get('admin');
this.lookupReference('toolbarAddButton').setVisible(!readonly);