aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/LoginController.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/LoginController.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/LoginController.js')
-rw-r--r--web/app/view/LoginController.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/web/app/view/LoginController.js b/web/app/view/LoginController.js
index f6b2fe228..bc73661ed 100644
--- a/web/app/view/LoginController.js
+++ b/web/app/view/LoginController.js
@@ -22,13 +22,13 @@ Ext.define('Traccar.view.LoginController', {
'Traccar.view.Register'
],
- init: function() {
+ init: function () {
this.lookupReference('registerButton').setDisabled(
!Traccar.app.getServer().get('registration'));
this.lookupReference('languageField').setValue(language);
},
- login: function() {
+ login: function () {
var form = this.lookupReference('form');
if (form.isValid()) {
Ext.getBody().mask(strings.sharedLoading);
@@ -36,7 +36,7 @@ Ext.define('Traccar.view.LoginController', {
scope: this,
url: '/api/login',
params: form.getValues(),
- callback: function(options, success, response) {
+ callback: function (options, success, response) {
Ext.getBody().unmask();
if (Traccar.ErrorManager.check(success, response)) {
var result = Ext.decode(response.responseText);
@@ -53,17 +53,17 @@ Ext.define('Traccar.view.LoginController', {
}
},
- logout: function() {
+ logout: function () {
Ext.Ajax.request({
scope: this,
url: '/api/logout',
- callback: function() {
+ callback: function () {
window.location.reload();
}
});
},
- onSelectLanguage: function(selected) {
+ onSelectLanguage: function (selected) {
var paramName = 'locale';
var paramValue = selected.getValue();
var url = window.location.href;
@@ -83,22 +83,22 @@ Ext.define('Traccar.view.LoginController', {
window.location.href = url;
},
- onAfterRender: function(field) {
+ onAfterRender: function (field) {
field.focus();
},
- onSpecialKey: function(field, e) {
+ onSpecialKey: function (field, e) {
if (e.getKey() === e.ENTER) {
this.login();
}
},
- onLoginClick: function() {
+ onLoginClick: function () {
Ext.getElementById('submitButton').click();
this.login();
},
- onRegisterClick: function() {
+ onRegisterClick: function () {
Ext.create('Traccar.view.login.Register').show();
}
});