From 92a3c58c390f205c1d723247525e234339553a72 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 28 Dec 2019 18:31:31 +0100 Subject: [PATCH] Fix filter field position when rebuilding filterable item list See 7308a8fa1a28ea6515f3656a5356d895b1a5c042 --- .../files/js/WoltLabSuite/Core/Ui/ItemList/Filter.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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')); -- 2.20.1