Fixes language selection bug in MultiLangInput with textareas
authorMatthias Schmidt <gravatronics@live.com>
Fri, 13 Apr 2012 10:04:41 +0000 (12:04 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 13 Apr 2012 10:04:41 +0000 (12:04 +0200)
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

index bffd54e080d5cdf6da70d164084630f0b4e4f023..acc5aecbebd9b8d4af93fad56cb35bb3d70a141a 100644 (file)
@@ -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