aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/user
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-16 22:45:14 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-16 22:45:14 +1200
commit4154c2cd31f23c5d5fb336dfcd68ba192b297f93 (patch)
treeb1178bbc26479f580606e8a70a1004a8cea46522 /web/app/view/user
parent607522a21625610248db7a586e6285bbb0331391 (diff)
downloadtrackermap-server-4154c2cd31f23c5d5fb336dfcd68ba192b297f93.tar.gz
trackermap-server-4154c2cd31f23c5d5fb336dfcd68ba192b297f93.tar.bz2
trackermap-server-4154c2cd31f23c5d5fb336dfcd68ba192b297f93.zip
More JavaScript code cleanup
Diffstat (limited to 'web/app/view/user')
-rw-r--r--web/app/view/user/UserDialogController.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/user/UserDialogController.js b/web/app/view/user/UserDialogController.js
index cd37f70cf..dd3109d37 100644
--- a/web/app/view/user/UserDialogController.js
+++ b/web/app/view/user/UserDialogController.js
@@ -19,7 +19,7 @@ Ext.define('Traccar.view.user.UserDialogController', {
alias: 'controller.userDialog',
init: function() {
- if (Traccar.getApplication().getUser().get('admin')) {
+ if (Traccar.app.getUser().get('admin')) {
this.lookupReference('adminField').setDisabled(false);
}
},
@@ -28,7 +28,7 @@ Ext.define('Traccar.view.user.UserDialogController', {
var dialog = button.up('window').down('form');
dialog.updateRecord();
var record = dialog.getRecord();
- if (record === Traccar.getApplication().getUser()) {
+ if (record === Traccar.app.getUser()) {
record.save();
} else {
var store = Ext.getStore('Users');