From 3fb947452706030e88a6e07cd01f5db5d95e0695 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 10 Jul 2016 12:52:27 +0200 Subject: [PATCH] Fixed language chooser issues --- wcfsetup/install/files/js/WoltLab/WCF/Language/Chooser.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Language/Chooser.js b/wcfsetup/install/files/js/WoltLab/WCF/Language/Chooser.js index a4356063df..aec198f99e 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Language/Chooser.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Language/Chooser.js @@ -147,13 +147,13 @@ define(['Dictionary', 'Language', 'Dom/Traverse', 'Dom/Util', 'ObjectMap', 'Ui/S dropdownMenu.appendChild(listItem); listItem = elCreate('li'); - elData(listItem, 'language-id', availableLanguageId); + elData(listItem, 'language-id', 0); listItem.addEventListener(WCF_CLICK_EVENT, callbackClick); dropdownMenu.appendChild(listItem); - a = elCreate('a'); - a.textContent = Language.get('wcf.global.language.noSelection'); - listItem.appendChild(a); + link = elCreate('a'); + link.textContent = Language.get('wcf.global.language.noSelection'); + listItem.appendChild(link); if (languageId === 0) { dropdownToggle.innerHTML = listItem.firstChild.innerHTML; -- 2.20.1