aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/UserDialogController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-07-25 17:47:50 +0500
committerAbyss777 <abyss@fox5.ru>2016-07-25 17:47:50 +0500
commitfb0a1689fda9a06ecf5e6a9a97ba8b2b704cacb9 (patch)
tree0a9e69d6139e19a830a979a45b76f82ccbe27bb4 /web/app/view/UserDialogController.js
parent7e20896334f4f6927cf14c5272cf7d893efc3a05 (diff)
downloadtrackermap-server-fb0a1689fda9a06ecf5e6a9a97ba8b2b704cacb9.tar.gz
trackermap-server-fb0a1689fda9a06ecf5e6a9a97ba8b2b704cacb9.tar.bz2
trackermap-server-fb0a1689fda9a06ecf5e6a9a97ba8b2b704cacb9.zip
Added group and server attributes
Diffstat (limited to 'web/app/view/UserDialogController.js')
-rw-r--r--web/app/view/UserDialogController.js20
1 files changed, 1 insertions, 19 deletions
diff --git a/web/app/view/UserDialogController.js b/web/app/view/UserDialogController.js
index 49dfd9d70..c3a4ca62d 100644
--- a/web/app/view/UserDialogController.js
+++ b/web/app/view/UserDialogController.js
@@ -15,13 +15,9 @@
*/
Ext.define('Traccar.view.UserDialogController', {
- extend: 'Ext.app.ViewController',
+ extend: 'Traccar.view.BaseEditDialogController',
alias: 'controller.userDialog',
- requires: [
- 'Traccar.view.Attributes'
- ],
-
init: function () {
if (Traccar.app.getUser().get('admin')) {
this.lookupReference('adminField').setDisabled(false);
@@ -48,19 +44,5 @@ Ext.define('Traccar.view.UserDialogController', {
});
}
button.up('window').close();
- },
-
- showAttributesView: function (button) {
- var dialog, record;
- dialog = button.up('window').down('form');
- record = dialog.getRecord();
- Ext.create('Traccar.view.BaseWindow', {
- title: Strings.sharedAttributes,
- modal: false,
- items: {
- xtype: 'attributesView',
- record: record
- }
- }).show();
}
});