aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog/Group.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-12-19 10:59:05 +0500
committerAbyss777 <abyss@fox5.ru>2017-12-19 10:59:05 +0500
commit18cd6ba4d5f3329db6bb9e4debfddfdfc49e76c2 (patch)
treeb94913e205c5243871aa577950c676a3994308ac /web/app/view/dialog/Group.js
parent23652dc720e1ca35099fab26208344f750b05e15 (diff)
downloadtrackermap-web-18cd6ba4d5f3329db6bb9e4debfddfdfc49e76c2.tar.gz
trackermap-web-18cd6ba4d5f3329db6bb9e4debfddfdfc49e76c2.tar.bz2
trackermap-web-18cd6ba4d5f3329db6bb9e4debfddfdfc49e76c2.zip
Implement custom combobox with clear button
Diffstat (limited to 'web/app/view/dialog/Group.js')
-rw-r--r--web/app/view/dialog/Group.js30
1 files changed, 10 insertions, 20 deletions
diff --git a/web/app/view/dialog/Group.js b/web/app/view/dialog/Group.js
index 3a94202d..85c548aa 100644
--- a/web/app/view/dialog/Group.js
+++ b/web/app/view/dialog/Group.js
@@ -18,6 +18,10 @@
Ext.define('Traccar.view.dialog.Group', {
extend: 'Traccar.view.dialog.BaseEdit',
+ requires: [
+ 'Traccar.view.CustomComboBox'
+ ],
+
title: Strings.groupDialog,
items: {
@@ -37,26 +41,12 @@ Ext.define('Traccar.view.dialog.Group', {
collapsible: true,
collapsed: true,
items: [{
- xtype: 'fieldcontainer',
- layout: 'hbox',
- fieldLabel: Strings.groupParent,
- items: [{
- xtype: 'combobox',
- name: 'groupId',
- store: 'Groups',
- queryMode: 'local',
- displayField: 'name',
- valueField: 'id',
- width: Traccar.Style.formFieldWithButtonWidth,
- editable: false
- }, {
- xtype: 'button',
- glyph: 'xf00d@FontAwesome',
- margin: '0 0 0 3px',
- handler: function (button) {
- button.up().down().clearValue();
- }
- }]
+ xtype: 'customComboBox',
+ name: 'groupId',
+ store: 'Groups',
+ queryMode: 'local',
+ displayField: 'name',
+ valueField: 'id'
}]
}]
}