aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/UserController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/UserController.js')
-rw-r--r--web/app/view/UserController.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/web/app/view/UserController.js b/web/app/view/UserController.js
index d5535bce3..0a6e4f553 100644
--- a/web/app/view/UserController.js
+++ b/web/app/view/UserController.js
@@ -29,15 +29,17 @@
},
onAddClick: function () {
- var user = Ext.create('Traccar.model.User');
- var dialog = Ext.create('Traccar.view.UserDialog');
+ var user, dialog;
+ user = Ext.create('Traccar.model.User'),
+ dialog = Ext.create('Traccar.view.UserDialog');
dialog.down('form').loadRecord(user);
dialog.show();
},
onEditClick: function () {
- var user = this.getView().getSelectionModel().getSelection()[0];
- var dialog = Ext.create('Traccar.view.UserDialog');
+ var user, dialog;
+ user = this.getView().getSelectionModel().getSelection()[0];
+ dialog = Ext.create('Traccar.view.UserDialog');
dialog.down('form').loadRecord(user);
dialog.show();
},