aboutsummaryrefslogtreecommitdiff
path: root/web/app/LoginManager.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-22 11:12:47 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-22 11:12:47 +1200
commitc3eb0a64c586e2bb71494fa2054ba9cea7ec3a2e (patch)
treeeb836d7a57b6f5479bd9eb4424898755a622b4c9 /web/app/LoginManager.js
parent32ac45e2e96baa970eca750a706d8bc823512844 (diff)
downloadtrackermap-server-c3eb0a64c586e2bb71494fa2054ba9cea7ec3a2e.tar.gz
trackermap-server-c3eb0a64c586e2bb71494fa2054ba9cea7ec3a2e.tar.bz2
trackermap-server-c3eb0a64c586e2bb71494fa2054ba9cea7ec3a2e.zip
Move server decoding to application
Diffstat (limited to 'web/app/LoginManager.js')
-rw-r--r--web/app/LoginManager.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/web/app/LoginManager.js b/web/app/LoginManager.js
index 0137ccf9c..867b4a7ab 100644
--- a/web/app/LoginManager.js
+++ b/web/app/LoginManager.js
@@ -31,10 +31,7 @@ Ext.define('Traccar.LoginManager', {
if (Traccar.ErrorManager.check(success, response)) {
var result = Ext.decode(response.responseText);
if (result.success) {
- var reader = Ext.create('Ext.data.reader.Json', {
- model: 'Traccar.model.Server'
- });
- Traccar.app.setServer(reader.readRecords(result.data).getRecords()[0]);
+ Traccar.app.setServer(result.data);
}
Ext.callback(options.callback, options.scope, [result.success]);
}