aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/edit
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-10-17 17:02:47 +0500
committerAbyss777 <abyss@fox5.ru>2017-10-17 17:02:47 +0500
commit41a18fef939d249ae5ed9ac4ae35c0a4e5ed8770 (patch)
treee405165239075265962fee36ec3d2289f3d98b1a /web/app/view/edit
parent531f9d5c556e9795b32099587bfa84f3b74017c4 (diff)
downloadetbsa-traccar-web-41a18fef939d249ae5ed9ac4ae35c0a4e5ed8770.tar.gz
etbsa-traccar-web-41a18fef939d249ae5ed9ac4ae35c0a4e5ed8770.tar.bz2
etbsa-traccar-web-41a18fef939d249ae5ed9ac4ae35c0a4e5ed8770.zip
Implement base Grid Panel class with common configs
Diffstat (limited to 'web/app/view/edit')
-rw-r--r--web/app/view/edit/Attributes.js5
-rw-r--r--web/app/view/edit/Calendars.js5
-rw-r--r--web/app/view/edit/ComputedAttributes.js5
-rw-r--r--web/app/view/edit/Devices.js6
-rw-r--r--web/app/view/edit/Drivers.js5
-rw-r--r--web/app/view/edit/Geofences.js5
-rw-r--r--web/app/view/edit/Groups.js5
-rw-r--r--web/app/view/edit/Notifications.js5
-rw-r--r--web/app/view/edit/SavedCommands.js5
-rw-r--r--web/app/view/edit/Users.js5
10 files changed, 11 insertions, 40 deletions
diff --git a/web/app/view/edit/Attributes.js b/web/app/view/edit/Attributes.js
index 2dd06be..cb07eda 100644
--- a/web/app/view/edit/Attributes.js
+++ b/web/app/view/edit/Attributes.js
@@ -16,17 +16,14 @@
*/
Ext.define('Traccar.view.edit.Attributes', {
- extend: 'Ext.grid.Panel',
+ extend: 'Traccar.view.GridPanel',
xtype: 'attributesView',
requires: [
- 'Ext.grid.filters.Filters',
'Traccar.view.edit.AttributesController',
'Traccar.view.edit.Toolbar'
],
- plugins: 'gridfilters',
-
controller: 'attributes',
tbar: {
diff --git a/web/app/view/edit/Calendars.js b/web/app/view/edit/Calendars.js
index 1c4a2ec..23f20e2 100644
--- a/web/app/view/edit/Calendars.js
+++ b/web/app/view/edit/Calendars.js
@@ -17,17 +17,14 @@
*/
Ext.define('Traccar.view.edit.Calendars', {
- extend: 'Ext.grid.Panel',
+ extend: 'Traccar.view.GridPanel',
xtype: 'calendarsView',
requires: [
- 'Ext.grid.filters.Filters',
'Traccar.view.edit.CalendarsController',
'Traccar.view.edit.Toolbar'
],
- plugins: 'gridfilters',
-
controller: 'calendars',
store: 'Calendars',
diff --git a/web/app/view/edit/ComputedAttributes.js b/web/app/view/edit/ComputedAttributes.js
index 5d34498..9f0b939 100644
--- a/web/app/view/edit/ComputedAttributes.js
+++ b/web/app/view/edit/ComputedAttributes.js
@@ -17,17 +17,14 @@
*/
Ext.define('Traccar.view.edit.ComputedAttributes', {
- extend: 'Ext.grid.Panel',
+ extend: 'Traccar.view.GridPanel',
xtype: 'computedAttributesView',
requires: [
- 'Ext.grid.filters.Filters',
'Traccar.view.edit.ComputedAttributesController',
'Traccar.view.edit.Toolbar'
],
- plugins: 'gridfilters',
-
controller: 'computedAttributes',
store: 'ComputedAttributes',
diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js
index d2ba0f3..39550b6 100644
--- a/web/app/view/edit/Devices.js
+++ b/web/app/view/edit/Devices.js
@@ -16,11 +16,10 @@
*/
Ext.define('Traccar.view.edit.Devices', {
- extend: 'Ext.grid.Panel',
+ extend: 'Traccar.view.GridPanel',
xtype: 'devicesView',
requires: [
- 'Ext.grid.filters.Filters',
'Traccar.AttributeFormatter',
'Traccar.view.edit.DevicesController',
'Traccar.view.ArrayListFilter',
@@ -29,8 +28,6 @@ Ext.define('Traccar.view.edit.Devices', {
controller: 'devices',
- plugins: 'gridfilters',
-
store: 'VisibleDevices',
stateful: true,
@@ -82,6 +79,7 @@ Ext.define('Traccar.view.edit.Devices', {
},
viewConfig: {
+ enableTextSelection: true,
getRowClass: function (record) {
var status = record.get('status');
if (status) {
diff --git a/web/app/view/edit/Drivers.js b/web/app/view/edit/Drivers.js
index 59d8d2c..9aac8cd 100644
--- a/web/app/view/edit/Drivers.js
+++ b/web/app/view/edit/Drivers.js
@@ -17,17 +17,14 @@
*/
Ext.define('Traccar.view.edit.Drivers', {
- extend: 'Ext.grid.Panel',
+ extend: 'Traccar.view.GridPanel',
xtype: 'driversView',
requires: [
- 'Ext.grid.filters.Filters',
'Traccar.view.edit.DriversController',
'Traccar.view.edit.Toolbar'
],
- plugins: 'gridfilters',
-
controller: 'drivers',
store: 'Drivers',
diff --git a/web/app/view/edit/Geofences.js b/web/app/view/edit/Geofences.js
index 51fa768..9c564bc 100644
--- a/web/app/view/edit/Geofences.js
+++ b/web/app/view/edit/Geofences.js
@@ -16,17 +16,14 @@
*/
Ext.define('Traccar.view.edit.Geofences', {
- extend: 'Ext.grid.Panel',
+ extend: 'Traccar.view.GridPanel',
xtype: 'geofencesView',
requires: [
- 'Ext.grid.filters.Filters',
'Traccar.view.edit.GeofencesController',
'Traccar.view.edit.Toolbar'
],
- plugins: 'gridfilters',
-
controller: 'geofences',
store: 'Geofences',
diff --git a/web/app/view/edit/Groups.js b/web/app/view/edit/Groups.js
index 691df8a..0808201 100644
--- a/web/app/view/edit/Groups.js
+++ b/web/app/view/edit/Groups.js
@@ -16,18 +16,15 @@
*/
Ext.define('Traccar.view.edit.Groups', {
- extend: 'Ext.grid.Panel',
+ extend: 'Traccar.view.GridPanel',
xtype: 'groupsView',
requires: [
- 'Ext.grid.filters.Filters',
'Traccar.AttributeFormatter',
'Traccar.view.edit.GroupsController',
'Traccar.view.edit.Toolbar'
],
- plugins: 'gridfilters',
-
controller: 'groups',
store: 'Groups',
diff --git a/web/app/view/edit/Notifications.js b/web/app/view/edit/Notifications.js
index 8bbdb71..e17100a 100644
--- a/web/app/view/edit/Notifications.js
+++ b/web/app/view/edit/Notifications.js
@@ -17,17 +17,14 @@
*/
Ext.define('Traccar.view.edit.Notifications', {
- extend: 'Ext.grid.Panel',
+ extend: 'Traccar.view.GridPanel',
xtype: 'notificationsView',
requires: [
- 'Ext.grid.filters.Filters',
'Traccar.view.edit.NotificationsController',
'Traccar.view.edit.Toolbar'
],
- plugins: 'gridfilters',
-
controller: 'notifications',
store: 'Notifications',
diff --git a/web/app/view/edit/SavedCommands.js b/web/app/view/edit/SavedCommands.js
index b0cf89d..794e95e 100644
--- a/web/app/view/edit/SavedCommands.js
+++ b/web/app/view/edit/SavedCommands.js
@@ -17,17 +17,14 @@
*/
Ext.define('Traccar.view.edit.SavedCommands', {
- extend: 'Ext.grid.Panel',
+ extend: 'Traccar.view.GridPanel',
xtype: 'savedCommandsView',
requires: [
- 'Ext.grid.filters.Filters',
'Traccar.view.edit.SavedCommandsController',
'Traccar.view.edit.Toolbar'
],
- plugins: 'gridfilters',
-
controller: 'savedCommands',
store: 'Commands',
diff --git a/web/app/view/edit/Users.js b/web/app/view/edit/Users.js
index d98d49c..fd37199 100644
--- a/web/app/view/edit/Users.js
+++ b/web/app/view/edit/Users.js
@@ -17,11 +17,10 @@
*/
Ext.define('Traccar.view.edit.Users', {
- extend: 'Ext.grid.Panel',
+ extend: 'Traccar.view.GridPanel',
xtype: 'usersView',
requires: [
- 'Ext.grid.filters.Filters',
'Traccar.view.edit.UsersController',
'Traccar.view.edit.Toolbar'
],
@@ -29,8 +28,6 @@ Ext.define('Traccar.view.edit.Users', {
controller: 'users',
store: 'Users',
- plugins: 'gridfilters',
-
tbar: {
xtype: 'editToolbar',
scrollable: true,