From: Matthias Schmidt Date: Tue, 7 May 2013 06:48:44 +0000 (+0200) Subject: Fixes initial autofocus of forced multilingual input fields X-Git-Tag: 2.0.0_Beta_1~244 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8c368f9a692db39c1cc90ac69d1747c071b192d3;p=GitHub%2FWoltLab%2FWCF.git Fixes initial autofocus of forced multilingual input fields Closes #1238 --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 41a6c89baf..42bd3a2417 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -3092,8 +3092,10 @@ WCF.MultipleLanguageInput = Class.extend({ this._list.prev('.dropdownToggle').children('span').text(this._availableLanguages[this._languageID]); // close selection and set focus on input element - //this._closeSelection(); - this._element.blur().focus(); + if (this._didInit) { + // this._closeSelection(); todo: still needed? + this._element.blur().focus(); + } }, /**