diff options
author | Abyss777 <abyss@fox5.ru> | 2017-10-17 17:02:47 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-10-17 17:02:47 +0500 |
commit | 41a18fef939d249ae5ed9ac4ae35c0a4e5ed8770 (patch) | |
tree | e405165239075265962fee36ec3d2289f3d98b1a /web/app/view/edit | |
parent | 531f9d5c556e9795b32099587bfa84f3b74017c4 (diff) | |
download | trackermap-web-41a18fef939d249ae5ed9ac4ae35c0a4e5ed8770.tar.gz trackermap-web-41a18fef939d249ae5ed9ac4ae35c0a4e5ed8770.tar.bz2 trackermap-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.js | 5 | ||||
-rw-r--r-- | web/app/view/edit/Calendars.js | 5 | ||||
-rw-r--r-- | web/app/view/edit/ComputedAttributes.js | 5 | ||||
-rw-r--r-- | web/app/view/edit/Devices.js | 6 | ||||
-rw-r--r-- | web/app/view/edit/Drivers.js | 5 | ||||
-rw-r--r-- | web/app/view/edit/Geofences.js | 5 | ||||
-rw-r--r-- | web/app/view/edit/Groups.js | 5 | ||||
-rw-r--r-- | web/app/view/edit/Notifications.js | 5 | ||||
-rw-r--r-- | web/app/view/edit/SavedCommands.js | 5 | ||||
-rw-r--r-- | web/app/view/edit/Users.js | 5 |
10 files changed, 11 insertions, 40 deletions
diff --git a/web/app/view/edit/Attributes.js b/web/app/view/edit/Attributes.js index 2dd06be2..cb07eda1 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 1c4a2ece..23f20e25 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 5d344988..9f0b9396 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 d2ba0f3d..39550b6c 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 59d8d2c4..9aac8cd6 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 51fa7686..9c564bc3 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 691df8ae..0808201d 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 8bbdb711..e17100a4 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 b0cf89d0..794e95e4 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 d98d49ce..fd371990 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, |