From: Matthias Schmidt Date: Sun, 21 Mar 2021 08:33:51 +0000 (+0100) Subject: Convert last uses of `WCF.Action.Toggle` to `Ui/Action/Toggle` X-Git-Tag: 5.4.0_Alpha_1~132^2~15 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1eb3fbb6ed56ec3eb0645eb0832faf358f8bf082;p=GitHub%2FWoltLab%2FWCF.git Convert last uses of `WCF.Action.Toggle` to `Ui/Action/Toggle` --- diff --git a/wcfsetup/install/files/acp/templates/categoryList.tpl b/wcfsetup/install/files/acp/templates/categoryList.tpl index 45a823ebf9..31f89aedf0 100644 --- a/wcfsetup/install/files/acp/templates/categoryList.tpl +++ b/wcfsetup/install/files/acp/templates/categoryList.tpl @@ -11,8 +11,6 @@ new WCF.Action.NestedDelete('wcf\\data\\category\\CategoryAction', '.jsCategory'); {/if} {if $objectType->getProcessor()->canEditCategory()} - new WCF.Action.Toggle('wcf\\data\\category\\CategoryAction', '.jsCategory', '> .sortableNodeLabel > .buttons > .jsToggleButton'); - var sortableNodes = $('.sortableNode'); sortableNodes.each(function(index, node) { $(node).wcfIdentify(); @@ -94,13 +92,13 @@ {hascontent}
-
    +
      {content} {assign var=oldDepth value=0} {foreach from=$categoryNodeList item='category'} {section name=i loop=$oldDepth-$categoryNodeList->getDepth()}
    {/section} -
  1. +
  2. {event name='beforeTitle'} @@ -116,7 +114,7 @@ {if $objectType->getProcessor()->canEditCategory()} - + {objectAction action="toggle" isDisabled=$category->isDisabled} {/if} diff --git a/wcfsetup/install/files/acp/templates/paidSubscriptionList.tpl b/wcfsetup/install/files/acp/templates/paidSubscriptionList.tpl index 40d3008870..5188fc46f6 100644 --- a/wcfsetup/install/files/acp/templates/paidSubscriptionList.tpl +++ b/wcfsetup/install/files/acp/templates/paidSubscriptionList.tpl @@ -1,12 +1,5 @@ {include file='header' pageTitle='wcf.acp.paidSubscription.list'} - -

    {lang}wcf.acp.paidSubscription.list{/lang}{if $items} {#$items}{/if}

    diff --git a/wcfsetup/install/files/acp/templates/reactionTypeList.tpl b/wcfsetup/install/files/acp/templates/reactionTypeList.tpl index 90fb7742dd..c087c1938d 100644 --- a/wcfsetup/install/files/acp/templates/reactionTypeList.tpl +++ b/wcfsetup/install/files/acp/templates/reactionTypeList.tpl @@ -9,10 +9,6 @@ offset: {@$startIndex} }); }); - - $(function() { - new WCF.Action.Toggle('wcf\\data\\reaction\\type\\ReactionTypeAction', '.reactionTypeRow'); - }); {/if} @@ -46,7 +42,11 @@ - + {assign var='reactionTypeIsDisabled' value=true} + {if $reactionType->isAssignable} + {assign var='reactionTypeIsDisabled' value=false} + {/if} + {objectAction action="toggle" isDisabled=$reactionTypeIsDisabled disableTitle='wcf.acp.reactionType.isAssignable' enableTitle='wcf.acp.reactionType.isNotAssignable'} {objectAction action="delete" objectTitle=$reactionType->getTitle()} diff --git a/wcfsetup/install/files/acp/templates/styleList.tpl b/wcfsetup/install/files/acp/templates/styleList.tpl index e16e8377e1..6ac198e9a7 100644 --- a/wcfsetup/install/files/acp/templates/styleList.tpl +++ b/wcfsetup/install/files/acp/templates/styleList.tpl @@ -3,7 +3,6 @@ @@ -30,9 +29,9 @@ {/hascontent}