summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/templates
diff options
context:
space:
mode:
authorSimon Rettberg2017-04-12 14:14:49 +0200
committerSimon Rettberg2017-04-12 14:14:49 +0200
commit131218d9034e19be708aca520e5e0aa9937e8ce2 (patch)
tree3d9d549fa0091a00830ba713cbd1b8e8a9229d7f /modules-available/locationinfo/templates
parent[locationinfo] Format php files (diff)
downloadslx-admin-131218d9034e19be708aca520e5e0aa9937e8ce2.tar.gz
slx-admin-131218d9034e19be708aca520e5e0aa9937e8ce2.tar.xz
slx-admin-131218d9034e19be708aca520e5e0aa9937e8ce2.zip
[locationinfo] Don't hardcode languages
Diffstat (limited to 'modules-available/locationinfo/templates')
-rw-r--r--modules-available/locationinfo/templates/config.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules-available/locationinfo/templates/config.html b/modules-available/locationinfo/templates/config.html
index 0fb62a50..104b1cf3 100644
--- a/modules-available/locationinfo/templates/config.html
+++ b/modules-available/locationinfo/templates/config.html
@@ -61,9 +61,9 @@
<div class="col-md-7">
<select class="form-control" name="language" id="language"
onchange="modifyCustomUrl('&amp;language=', this.value);">
- <option value="en" id="en">{{lang_languageEn}}</option>
- <option value="de" id="de">{{lang_languageDe}}</option>
- <option value="pt" id="pt">{{lang_languagePt}}</option>
+ {{#languages}}
+ <option value="{{cc}}" id="lang-{{cc}}">{{name}}</option>
+ {{/languages}}
</select>
</div>
<div class="col-md-2">
@@ -400,7 +400,7 @@
* Loads the Values in the config form elements.
*/
function loadValues() {
- $("#{{language}}").attr("selected", "selected");
+ $("#lang-{{language}}").attr("selected", "selected");
$('#serverOption-{{serverid}}').attr("selected", "selected");