From: Matthias Schmidt Date: Sat, 28 Dec 2019 17:31:31 +0000 (+0100) Subject: Fix filter field position when rebuilding filterable item list X-Git-Tag: 5.2.0~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=92a3c58c390f205c1d723247525e234339553a72;p=GitHub%2FWoltLab%2FWCF.git Fix filter field position when rebuilding filterable item list See 7308a8fa1a28ea6515f3656a5356d895b1a5c042 --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList/Filter.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList/Filter.js index 599fabcf1c..6f15ea54c3 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList/Filter.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList/Filter.js @@ -219,7 +219,12 @@ define(['Core', 'EventKey', 'Language', 'List', 'StringUtil', 'Dom/Util', 'Ui/Si } }); - this._container.insertBefore(this._fragment.firstChild, this._container.firstChild); + if (this._options.filterPosition === 'bottom') { + this._container.insertBefore(this._fragment.firstChild, this._container.firstChild); + } + else { + this._container.appendChild(this._fragment.firstChild); + } this._value = value; elInnerError(this._container, (hasVisibleItems) ? false : Language.get('wcf.global.filter.error.noMatches'));