From 84481c65c36aecd13c9d1f52074003908bd38abb Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 9 Apr 2012 17:08:58 +0200 Subject: [PATCH] Improved ACP label management --- wcfsetup/install/files/js/WCF.js | 5 +++-- wcfsetup/install/files/style/label.less | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 2d58a5e4aa..6dea51ddda 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2307,7 +2307,7 @@ WCF.MultipleLanguageInput.prototype = { // close selection and set focus on input element this._closeSelection(); - this._element.focus(); + this._element.blur().focus(); }, /** @@ -2330,7 +2330,8 @@ WCF.MultipleLanguageInput.prototype = { // no value for current language found, proceed with empty input this._element.val(); } - + + this._element.blur(); this._isEnabled = false; }, diff --git a/wcfsetup/install/files/style/label.less b/wcfsetup/install/files/style/label.less index 35999582ad..2ba3fe7f60 100644 --- a/wcfsetup/install/files/style/label.less +++ b/wcfsetup/install/files/style/label.less @@ -88,4 +88,26 @@ a.badge.label:hover { /* label list */ .labelList, .labelList > li { display: inline-block; +} + +/* ACP label list */ +#labelList li { + float: left; + margin-right: 1%; + width: 30%; + + &.labelCustomClass { + position: relative; + + input[type='radio'] { + left: 0; + position: absolute; + top: 0; + } + + span { + display: block; + margin-left: 24px; + } + } } \ No newline at end of file -- 2.20.1