diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-08 14:33:48 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-08 14:33:48 +1300 |
commit | 38134454c55b4a36f7c82686e3a29a9610050e6e (patch) | |
tree | 9cc0cb41713c1d9b17f1df17c41953a938f010be /web/app/view/LoginController.js | |
parent | 30f1a770f867de05a89ee6073dc002137d5e4512 (diff) | |
download | trackermap-server-38134454c55b4a36f7c82686e3a29a9610050e6e.tar.gz trackermap-server-38134454c55b4a36f7c82686e3a29a9610050e6e.tar.bz2 trackermap-server-38134454c55b4a36f7c82686e3a29a9610050e6e.zip |
Fix JavaScript check style issues
Diffstat (limited to 'web/app/view/LoginController.js')
-rw-r--r-- | web/app/view/LoginController.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/web/app/view/LoginController.js b/web/app/view/LoginController.js index e0dbcce88..cd5a174d5 100644 --- a/web/app/view/LoginController.js +++ b/web/app/view/LoginController.js @@ -65,12 +65,13 @@ Ext.define('Traccar.view.LoginController', { }, onSelectLanguage: function (selected) { - var paramName = 'locale'; - var paramValue = selected.getValue(); - var url = window.location.href; + var paramName, paramValue, url, prefix, suffix; + paramName = 'locale'; + paramValue = selected.getValue(); + url = window.location.href; if (url.indexOf(paramName + '=') >= 0) { - var prefix = url.substring(0, url.indexOf(paramName)); - var suffix = url.substring(url.indexOf(paramName)); + prefix = url.substring(0, url.indexOf(paramName)); + suffix = url.substring(url.indexOf(paramName)); suffix = suffix.substring(suffix.indexOf('=') + 1); suffix = (suffix.indexOf('&') >= 0) ? suffix.substring(suffix.indexOf('&')) : ''; url = prefix + paramName + '=' + paramValue + suffix; |