aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/controller')
-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) {