diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-03 20:27:15 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-03 20:27:15 +1300 |
commit | 8782eeec561e490b4262ba8983e69623daaf5845 (patch) | |
tree | 6cb8c6ccb1b4db249133d71fc521155f63b241ca /web/app/view/user/UserDialogController.js | |
parent | 458809c4ee29e3410686bf6d8c80c746caf9724f (diff) | |
download | traccar-server-8782eeec561e490b4262ba8983e69623daaf5845.tar.gz traccar-server-8782eeec561e490b4262ba8983e69623daaf5845.tar.bz2 traccar-server-8782eeec561e490b4262ba8983e69623daaf5845.zip |
Add space after function keyword
Diffstat (limited to 'web/app/view/user/UserDialogController.js')
-rw-r--r-- | web/app/view/user/UserDialogController.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/app/view/user/UserDialogController.js b/web/app/view/user/UserDialogController.js index dd3109d37..40f938b5c 100644 --- a/web/app/view/user/UserDialogController.js +++ b/web/app/view/user/UserDialogController.js @@ -18,13 +18,13 @@ Ext.define('Traccar.view.user.UserDialogController', { extend: 'Ext.app.ViewController', alias: 'controller.userDialog', - init: function() { + init: function () { if (Traccar.app.getUser().get('admin')) { this.lookupReference('adminField').setDisabled(false); } }, - onSaveClick: function(button) { + onSaveClick: function (button) { var dialog = button.up('window').down('form'); dialog.updateRecord(); var record = dialog.getRecord(); @@ -36,7 +36,7 @@ Ext.define('Traccar.view.user.UserDialogController', { store.add(record); } store.sync({ - failure: function(batch) { + failure: function (batch) { store.rejectChanges(); // TODO Traccar.ErrorManager.check(true, batch.exceptions[0].getResponse()); } @@ -45,7 +45,7 @@ Ext.define('Traccar.view.user.UserDialogController', { button.up('window').close(); }, - onCancelClick: function(button) { + onCancelClick: function (button) { button.up('window').close(); } |