From: Alexander Ebert Date: Sat, 16 Aug 2014 18:27:19 +0000 (+0200) Subject: Added fallback for empty language selections X-Git-Tag: 2.1.0_Alpha_1~437 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=853f5ea1b52aca9567a032b2b0e64fd33bbc7b89;p=GitHub%2FWoltLab%2FWCF.git Added fallback for empty language selections --- 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(); },