From d2f71a4df99d384c96f656868a4684933d9641dc Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 6 Jul 2021 14:33:14 +0200 Subject: [PATCH] Search for articles toggled the incorrect container --- ts/WoltLabSuite/Core/Ui/Article/Search.ts | 4 ++-- .../install/files/js/WoltLabSuite/Core/Ui/Article/Search.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ts/WoltLabSuite/Core/Ui/Article/Search.ts b/ts/WoltLabSuite/Core/Ui/Article/Search.ts index f31a135152..a89d87f2c9 100644 --- a/ts/WoltLabSuite/Core/Ui/Article/Search.ts +++ b/ts/WoltLabSuite/Core/Ui/Article/Search.ts @@ -78,9 +78,9 @@ class UiArticleSearch implements AjaxCallbackObject, DialogCallbackObject { this.resultList!.innerHTML = html; if (html) { - DomUtil.show(this.resultList!); + DomUtil.show(this.resultContainer!); } else { - DomUtil.hide(this.resultList!); + DomUtil.hide(this.resultContainer!); } if (html) { diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/Search.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/Search.js index 0bd1e22770..73ac1e56e1 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/Search.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/Search.js @@ -57,10 +57,10 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Dom/Util", "../../La .join(""); this.resultList.innerHTML = html; if (html) { - Util_1.default.show(this.resultList); + Util_1.default.show(this.resultContainer); } else { - Util_1.default.hide(this.resultList); + Util_1.default.hide(this.resultContainer); } if (html) { this.resultList.querySelectorAll(".containerHeadline").forEach((item) => { -- 2.20.1