aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/user/UserController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 20:27:15 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 20:27:15 +1300
commit8782eeec561e490b4262ba8983e69623daaf5845 (patch)
tree6cb8c6ccb1b4db249133d71fc521155f63b241ca /web/app/view/user/UserController.js
parent458809c4ee29e3410686bf6d8c80c746caf9724f (diff)
downloadtrackermap-server-8782eeec561e490b4262ba8983e69623daaf5845.tar.gz
trackermap-server-8782eeec561e490b4262ba8983e69623daaf5845.tar.bz2
trackermap-server-8782eeec561e490b4262ba8983e69623daaf5845.zip
Add space after function keyword
Diffstat (limited to 'web/app/view/user/UserController.js')
-rw-r--r--web/app/view/user/UserController.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/web/app/view/user/UserController.js b/web/app/view/user/UserController.js
index 156d33a86..507fd5a5c 100644
--- a/web/app/view/user/UserController.js
+++ b/web/app/view/user/UserController.js
@@ -22,25 +22,25 @@ Ext.define('Traccar.view.user.UserController', {
'Traccar.view.user.UserDialog'
],
- init: function() {
+ init: function () {
Ext.getStore('Users').load();
},
- onAddClick: function() {
+ onAddClick: function () {
var user = Ext.create('Traccar.model.User');
var dialog = Ext.create('Traccar.view.user.UserDialog');
dialog.down('form').loadRecord(user);
dialog.show();
},
- onEditClick: function() {
+ onEditClick: function () {
var user = this.getView().getSelectionModel().getSelection()[0];
var dialog = Ext.create('Traccar.view.user.UserDialog');
dialog.down('form').loadRecord(user);
dialog.show();
},
- onRemoveClick: function() {
+ onRemoveClick: function () {
var user = this.getView().getSelectionModel().getSelection()[0];
Ext.Msg.show({
title: strings.settingsUser,
@@ -50,7 +50,7 @@ Ext.define('Traccar.view.user.UserController', {
yes: strings.sharedRemove,
no: strings.sharedCancel
},
- fn: function(btn) {
+ fn: function (btn) {
if (btn === 'yes') {
var store = Ext.getStore('Users');
store.remove(user);
@@ -60,7 +60,7 @@ Ext.define('Traccar.view.user.UserController', {
});
},
- onDevicesClick: function() {
+ onDevicesClick: function () {
// TODO show devices
/*Ext.create('Ext.window.Window', {
title: strings.settingsUsers,
@@ -74,7 +74,7 @@ Ext.define('Traccar.view.user.UserController', {
}).show();*/
},
- onSelectionChange: function(selected) {
+ onSelectionChange: function (selected) {
var disabled = selected.length > 0;
this.lookupReference('userEditButton').setDisabled(disabled);
this.lookupReference('userRemoveButton').setDisabled(disabled);