aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/AttributeDialog.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-07-25 20:46:21 +0500
committerAbyss777 <abyss@fox5.ru>2016-07-25 20:46:21 +0500
commit0c1c9b07aafcf02d2be4129517fd0c87f01cf9d4 (patch)
treebc0273c9ae201579f19ba785b865a3d93227f73c /web/app/view/AttributeDialog.js
parentfb0a1689fda9a06ecf5e6a9a97ba8b2b704cacb9 (diff)
downloadtrackermap-server-0c1c9b07aafcf02d2be4129517fd0c87f01cf9d4.tar.gz
trackermap-server-0c1c9b07aafcf02d2be4129517fd0c87f01cf9d4.tar.bz2
trackermap-server-0c1c9b07aafcf02d2be4129517fd0c87f01cf9d4.zip
Fix attribute editing
Diffstat (limited to 'web/app/view/AttributeDialog.js')
-rw-r--r--web/app/view/AttributeDialog.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/web/app/view/AttributeDialog.js b/web/app/view/AttributeDialog.js
index be06b7576..213891ecd 100644
--- a/web/app/view/AttributeDialog.js
+++ b/web/app/view/AttributeDialog.js
@@ -15,13 +15,13 @@
*/
Ext.define('Traccar.view.AttributeDialog', {
- extend: 'Traccar.view.BaseEditDialog',
+ extend: 'Traccar.view.BaseDialog',
requires: [
- 'Traccar.view.BaseEditDialogController'
+ 'Traccar.view.AttributeController'
],
- controller: 'baseEditDialog',
+ controller: 'attributeDialog',
title: Strings.sharedAttribute,
items: {
@@ -35,5 +35,13 @@ Ext.define('Traccar.view.AttributeDialog', {
name: 'value',
fieldLabel: Strings.stateValue
}]
- }
+ },
+
+ buttons: [{
+ text: Strings.sharedSave,
+ handler: 'onSaveClick'
+ }, {
+ text: Strings.sharedCancel,
+ handler: 'closeView'
+ }]
});