From 131218d9034e19be708aca520e5e0aa9937e8ce2 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 12 Apr 2017 14:14:49 +0200 Subject: [locationinfo] Don't hardcode languages --- modules-available/locationinfo/page.inc.php | 1 + modules-available/locationinfo/templates/config.html | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'modules-available/locationinfo') diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index d507c4c3..16b85b11 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -733,6 +733,7 @@ class Page_LocationInfo extends Page echo Render::parse('config', array( 'id' => $id, 'language' => $array['language'], + 'languages' => Dictionary::getLanguages(true), 'mode' => 'mode' . $array['mode'], 'vertical' => $array['vertical'], 'eco' => $array['eco'], 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 @@
@@ -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"); -- cgit v1.2.3-55-g7522