From 853f5ea1b52aca9567a032b2b0e64fd33bbc7b89 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 16 Aug 2014 20:27:19 +0200 Subject: [PATCH] Added fallback for empty language selections --- wcfsetup/install/files/js/WCF.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 9ff9062aca..5184360261 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -10102,6 +10102,10 @@ WCF.Language.Chooser = Class.extend({ this._dropdown.children('.dropdownToggle').empty().append($item.html()); } } + else if (languageID === 0) { + var $dropdownToggle = $('

' + WCF.Language.get('wcf.global.language.noSelection') + '

'); + this._dropdown.children('.dropdownToggle').empty().append($dropdownToggle); + } WCF.Dropdown.init(); }, -- 2.20.1