From: Matthias Schmidt Date: Thu, 1 Nov 2012 23:34:16 +0000 (+0100) Subject: Adjusts the height of multilingual input fields X-Git-Tag: 2.0.0_Beta_1~821^2~9^2~1^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bc96384e076c85529cd2f8f39b782870a5c66e1b;p=GitHub%2FWoltLab%2FWCF.git Adjusts the height of multilingual input fields This way, button and input field have the same height which looks way better than if the input field isn't high enough. --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 7cb00fdef9..ab78fe2351 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2315,8 +2315,7 @@ WCF.Language = { * @param object values * @param object availableLanguages */ -WCF.MultipleLanguageInput = function(elementID, forceSelection, values, availableLanguages) { this.init(elementID, forceSelection, values, availableLanguages); }; -WCF.MultipleLanguageInput.prototype = { +WCF.MultipleLanguageInput = Class.extend({ /** * list of available languages * @var object @@ -2426,6 +2425,7 @@ WCF.MultipleLanguageInput.prototype = { } else { $button.addClass('dropdownCaption'); + $button.next().css('height', $button.outerHeight()); } // insert list @@ -2627,7 +2627,7 @@ WCF.MultipleLanguageInput.prototype = { // remove name attribute to prevent conflict with i18n values this._element.removeAttr('name'); } -}; +}); /** * Icon collection used across all JavaScript classes.