From 78db74c7058fb5b1fa9c58298784bebff48baa23 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 4 Jan 2013 11:34:46 +0100 Subject: [PATCH] Enhances/Fixes categoryList.tpl Closes #1064 --- .../files/acp/templates/categoryList.tpl | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/categoryList.tpl b/wcfsetup/install/files/acp/templates/categoryList.tpl index decdee6696..07dee62cb1 100644 --- a/wcfsetup/install/files/acp/templates/categoryList.tpl +++ b/wcfsetup/install/files/acp/templates/categoryList.tpl @@ -12,7 +12,7 @@ new WCF.ACP.Category.Delete('wcf\\data\\category\\CategoryAction', $('.jsCategory')); {/if} {if $objectType->getProcessor()->canEditCategory()} - new WCF.Action.Toggle('wcf\\data\\category\\CategoryAction', '.jsCategory', '> .buttons > .jsToggleButton'); + new WCF.Action.Toggle('wcf\\data\\category\\CategoryAction', '.jsCategory', '> .sortableNodeLabel > .buttons > .jsToggleButton'); {if $categoryNodeList|count > 1} var sortableNodes = $('.sortableNode'); @@ -98,7 +98,15 @@
  • - + + {if $objectType->getProcessor()->canEditCategory()} + {$category->getTitle()} + {else} + {$category->getTitle()} + {/if} + + + {if $objectType->getProcessor()->canEditCategory()} {else} @@ -112,7 +120,6 @@ {/if} {if $objectType->getProcessor()->canEditCategory()} - {* todo: toggle icons aren't clickable *} {else} @@ -120,10 +127,6 @@ {event name='buttons'} - - - {$category->getTitle()} -
      @@ -137,7 +140,7 @@ {if $objectType->getProcessor()->canEditCategory() && $categoryNodeList|count > 1}
      - +
      {/if} -- 2.20.1