From fbdafcc9c76ce97907862c1e83c9d452583fa2d3 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 13 Apr 2012 12:04:41 +0200 Subject: [PATCH] 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. --- wcfsetup/install/files/js/WCF.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1