aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller/Root.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/controller/Root.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/controller/Root.js')
-rw-r--r--web/app/controller/Root.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 490019b1a..aa2682708 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -24,7 +24,7 @@ Ext.define('Traccar.controller.Root', {
'Traccar.view.MainMobile'
],
- init: function() {
+ init: function () {
var indicator = document.createElement('div');
indicator.className = 'state-indicator';
document.body.appendChild(indicator);
@@ -38,14 +38,14 @@ Ext.define('Traccar.controller.Root', {
});
},
- onServer: function() {
+ onServer: function () {
Traccar.LoginManager.session({
scope: this,
callback: 'onSession'
});
},
- onSession: function(success) {
+ onSession: function (success) {
if (success) {
this.loadApp();
} else {
@@ -59,12 +59,12 @@ Ext.define('Traccar.controller.Root', {
}
},
- onLogin: function() {
+ onLogin: function () {
this.login.close();
this.loadApp();
},
- loadApp: function() {
+ loadApp: function () {
Ext.getStore('Devices').load();
Ext.getBody().empty();
if (this.isPhone) {