From ae4dd172293174705722adbd1ad691c33d17f30c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 18 Aug 2022 19:57:15 +0200 Subject: [PATCH] Convert legacy icons --- com.woltlab.wcf/templates/__iconFormField.tpl | 1 - .../templates/__suffixFormFieldContainer.tpl | 2 +- .../templates/__userObjectWatchButton.tpl | 6 +++++- com.woltlab.wcf/templates/aclSimple.tpl | 10 +++++++--- com.woltlab.wcf/templates/articleList.tpl | 9 ++++++++- com.woltlab.wcf/templates/editHistory.tpl | 8 ++++++-- .../lineBreakSeparatedTextOptionType.tpl | 4 +++- com.woltlab.wcf/templates/mediaListItems.tpl | 16 +++++++++++---- com.woltlab.wcf/templates/mediaManager.tpl | 4 +++- com.woltlab.wcf/templates/membersList.tpl | 2 +- .../templates/messageQuoteList.tpl | 6 +++++- com.woltlab.wcf/templates/messageSidebar.tpl | 6 +++++- com.woltlab.wcf/templates/moderationList.tpl | 16 +++++++-------- com.woltlab.wcf/templates/optionFieldList.tpl | 13 +++++++++++- .../templates/pageHeaderSearch.tpl | 6 +++--- com.woltlab.wcf/templates/pageHeaderUser.tpl | 2 +- com.woltlab.wcf/templates/styleChooser.tpl | 9 ++++++++- ts/WoltLabSuite/Core/Ui/Acl/Simple.ts | 4 ++-- .../files/acp/templates/__iconFormField.tpl | 1 - .../install/files/acp/templates/aclSimple.tpl | 10 +++++++--- .../files/acp/templates/mediaListItems.tpl | 20 +++++++++++++------ .../js/WoltLabSuite/Core/Ui/Acl/Simple.js | 4 ++-- 22 files changed, 113 insertions(+), 46 deletions(-) diff --git a/com.woltlab.wcf/templates/__iconFormField.tpl b/com.woltlab.wcf/templates/__iconFormField.tpl index ad6728ef72..6c47495c41 100644 --- a/com.woltlab.wcf/templates/__iconFormField.tpl +++ b/com.woltlab.wcf/templates/__iconFormField.tpl @@ -19,7 +19,6 @@ const input = document.getElementById('{@$field->getPrefixedId()}'); const callback = (iconName, forceSolid) => { - icon.className = 'icon icon64 fa-' + iconName; input.value = iconName; let icon = iconContainer.querySelector("fa-icon"); diff --git a/com.woltlab.wcf/templates/__suffixFormFieldContainer.tpl b/com.woltlab.wcf/templates/__suffixFormFieldContainer.tpl index c6ea9e6356..a1cc3421d0 100644 --- a/com.woltlab.wcf/templates/__suffixFormFieldContainer.tpl +++ b/com.woltlab.wcf/templates/__suffixFormFieldContainer.tpl @@ -15,7 +15,7 @@ {/if} {else} - {@$element->getSelectedSuffixOption()[label]} + {@$element->getSelectedSuffixOption()[label]} {icon size=16 name='caret-down' type='solid'}