From: Matthias Schmidt Date: Fri, 13 Apr 2012 10:04:41 +0000 (+0200) Subject: Fixes language selection bug in MultiLangInput with textareas X-Git-Tag: 2.0.0_Beta_1~1028^2~6^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fbdafcc9c76ce97907862c1e83c9d452583fa2d3;p=GitHub%2FWoltLab%2FWCF.git Fixes language selection bug in MultiLangInput with textareas Dropdowns in front of textareas don't have the `dropdownCaption` class (`dropdownCaptionTextarea` instead, but both types have the `dropdownToggle` class. --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index bffd54e080..acc5aecbeb 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2301,7 +2301,7 @@ WCF.MultipleLanguageInput.prototype = { $button.addClass('active'); // update label - this._list.prev('.dropdownCaption').children('span').text(this._availableLanguages[this._languageID]); + this._list.prev('.dropdownToggle').children('span').text(this._availableLanguages[this._languageID]); // close selection and set focus on input element this._closeSelection(); @@ -2317,7 +2317,7 @@ WCF.MultipleLanguageInput.prototype = { } // remove active marking - this._list.prev('.dropdownCaption').children('span').removeClass('active').text(WCF.Language.get('wcf.global.button.disabledI18n')); + this._list.prev('.dropdownToggle').children('span').removeClass('active').text(WCF.Language.get('wcf.global.button.disabledI18n')); this._closeSelection(); // update element value