Fixed language chooser issues
authorMarcel Werk <burntime@woltlab.com>
Sun, 10 Jul 2016 10:52:27 +0000 (12:52 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 10 Jul 2016 10:55:47 +0000 (12:55 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Language/Chooser.js

index a4356063dfe2a02ac995798d38adc68c8a64d90b..aec198f99ea41b31da3a6608a31fdfa62f46ab35 100644 (file)
@@ -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;