aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/controller')
-rw-r--r--web/app/controller/Root.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 81be05a..eaf98e8 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -34,7 +34,6 @@ Ext.define('Traccar.controller.Root', {
},
onServerReturn: function (options, success, response) {
- Ext.get('spinner').remove();
if (success) {
Traccar.app.setServer(Ext.decode(response.responseText));
Ext.Ajax.request({
@@ -48,6 +47,7 @@ Ext.define('Traccar.controller.Root', {
},
onSessionReturn: function (options, success, response) {
+ Ext.get('spinner').setVisible(false);
if (success) {
Traccar.app.setUser(Ext.decode(response.responseText));
this.loadApp();