diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-15 12:24:13 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-15 12:24:13 +1200 |
commit | d2139af877194952e3d49ca882188bcebbbd927e (patch) | |
tree | f5f6c81df6f04269a0f57d83e5fce17b8c98c346 /web/app/store/Languages.js | |
parent | 5cf1061cfcc5baf214bce145961512fd4f672621 (diff) | |
download | trackermap-server-d2139af877194952e3d49ca882188bcebbbd927e.tar.gz trackermap-server-d2139af877194952e3d49ca882188bcebbbd927e.tar.bz2 trackermap-server-d2139af877194952e3d49ca882188bcebbbd927e.zip |
Update and format store classes
Diffstat (limited to 'web/app/store/Languages.js')
-rw-r--r-- | web/app/store/Languages.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/app/store/Languages.js b/web/app/store/Languages.js index 97a581805..360508fd1 100644 --- a/web/app/store/Languages.js +++ b/web/app/store/Languages.js @@ -17,13 +17,14 @@ Ext.define('Traccar.store.Languages', { extend: 'Ext.data.Store', fields: ['code', 'name'], + data: function() { var data = []; for (var code in availableLanguages) { if (availableLanguages.hasOwnProperty(code)) { data.push({ - 'code': code, - 'name': availableLanguages[code].name + code: code, + name: availableLanguages[code].name }); } } |