aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/UserDialogController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/UserDialogController.js')
-rw-r--r--web/app/view/UserDialogController.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/web/app/view/UserDialogController.js b/web/app/view/UserDialogController.js
index 6dbd44fa7..40c88a8b4 100644
--- a/web/app/view/UserDialogController.js
+++ b/web/app/view/UserDialogController.js
@@ -27,13 +27,14 @@
},
onSaveClick: function (button) {
- var dialog = button.up('window').down('form');
+ var dialog, record, store;
+ dialog = button.up('window').down('form');
dialog.updateRecord();
- var record = dialog.getRecord();
+ record = dialog.getRecord();
if (record === Traccar.app.getUser()) {
record.save();
} else {
- var store = Ext.getStore('Users');
+ store = Ext.getStore('Users');
if (record.phantom) {
store.add(record);
}