diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-16 22:45:14 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-16 22:45:14 +1200 |
commit | 4154c2cd31f23c5d5fb336dfcd68ba192b297f93 (patch) | |
tree | b1178bbc26479f580606e8a70a1004a8cea46522 /web/app/LoginManager.js | |
parent | 607522a21625610248db7a586e6285bbb0331391 (diff) | |
download | trackermap-server-4154c2cd31f23c5d5fb336dfcd68ba192b297f93.tar.gz trackermap-server-4154c2cd31f23c5d5fb336dfcd68ba192b297f93.tar.bz2 trackermap-server-4154c2cd31f23c5d5fb336dfcd68ba192b297f93.zip |
More JavaScript code cleanup
Diffstat (limited to 'web/app/LoginManager.js')
-rw-r--r-- | web/app/LoginManager.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web/app/LoginManager.js b/web/app/LoginManager.js index 93b3e913c..34069574b 100644 --- a/web/app/LoginManager.js +++ b/web/app/LoginManager.js @@ -21,8 +21,7 @@ Ext.define('Traccar.LoginManager', { var reader = Ext.create('Ext.data.reader.Json', { model: 'Traccar.model.User' }); - Traccar.getApplication().setUser( - reader.readRecords(data).getRecords()[0]); + Traccar.app.setUser(reader.readRecords(data).getRecords()[0]); }, server: function(options) { @@ -42,8 +41,7 @@ Ext.define('Traccar.LoginManager', { var reader = Ext.create('Ext.data.reader.Json', { model: 'Traccar.model.Server' }); - Traccar.getApplication().setServer( - reader.readRecords(result.data).getRecords()[0]); + Traccar.app.setServer(reader.readRecords(result.data).getRecords()[0]); } Ext.callback(options.callback, options.scope, [result.success]); } |