diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-03 20:39:14 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-03 20:39:14 +1300 |
commit | d16121684ecae7646aa87616a64d60978d087bc0 (patch) | |
tree | 69a02f798950bc9ee54e33cdf8ae09fed40168e4 /web/app/LoginManager.js | |
parent | 8782eeec561e490b4262ba8983e69623daaf5845 (diff) | |
download | trackermap-server-d16121684ecae7646aa87616a64d60978d087bc0.tar.gz trackermap-server-d16121684ecae7646aa87616a64d60978d087bc0.tar.bz2 trackermap-server-d16121684ecae7646aa87616a64d60978d087bc0.zip |
Move remaining classes to view
Diffstat (limited to 'web/app/LoginManager.js')
-rw-r--r-- | web/app/LoginManager.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/app/LoginManager.js b/web/app/LoginManager.js index 5a9615183..07445fc15 100644 --- a/web/app/LoginManager.js +++ b/web/app/LoginManager.js @@ -16,7 +16,7 @@ Ext.define('Traccar.LoginManager', { singleton: true, - + server: function (options) { Ext.Ajax.request({ scope: this, @@ -45,16 +45,16 @@ Ext.define('Traccar.LoginManager', { original: options }); }, - + onSessionReturn: function (options, success, response) { + var result; options = options.original; if (Traccar.ErrorManager.check(success, response)) { - var result = Ext.decode(response.responseText); + result = Ext.decode(response.responseText); if (result.success) { Traccar.app.setUser(result.data); } Ext.callback(options.callback, options.scope, [result.success]); } } - }); |