From f93c7ec8c746e30de329a7bb0dc5fbc8eae84bd1 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Fri, 19 Apr 2013 10:34:20 +0200 Subject: [PATCH] [-] BO : Fix bug #PSCFV-8843, no closing span in category-filter helper --- .../template/helpers/form/form_category.tpl | 30 ++++++++----------- classes/helper/Helper.php | 17 +++++------ 2 files changed, 19 insertions(+), 28 deletions(-) diff --git a/admin-dev/themes/default/template/helpers/form/form_category.tpl b/admin-dev/themes/default/template/helpers/form/form_category.tpl index b2a7f6af6..55452b132 100644 --- a/admin-dev/themes/default/template/helpers/form/form_category.tpl +++ b/admin-dev/themes/default/template/helpers/form/form_category.tpl @@ -35,39 +35,33 @@ buildTreeView(use_context); }); -
- {$categories.trads['Collapse All']} - | - {$categories.trads['Expand All']} + {$categories.trads['Collapse All']} + {$categories.trads['Expand All']} {if !$categories.use_radio} - | - {$categories.trads['Check All']} - | - {$categories.trads['Uncheck All']} - {/if} + {$categories.trads['Check All']} + {$categories.trads['Uncheck All']} + {/if} {if $categories.use_search} - {$categories.trads.search} : + {$categories.trads.search}: 
- +
{/if}
- {assign var=home_is_selected value=false} - {foreach $categories.selected_cat AS $cat} {if is_array($cat)} {if $cat.id_category != $categories.trads.Root.id_category} - + {else} {assign var=home_is_selected value=true} {/if} {else} {if $cat != $categories.trads.Root.id_category} - + {else} {assign var=home_is_selected value=true} {/if} @@ -80,8 +74,8 @@ + {if $home_is_selected}checked="checked"{/if} + onclick="clickOnCategoryBox($(this));"/> {$categories.trads.Root.name} {else}   @@ -97,4 +91,4 @@ searchCategory(); {/if} -{/if} +{/if} \ No newline at end of file diff --git a/classes/helper/Helper.php b/classes/helper/Helper.php index 83c998f81..d5516c3e6 100755 --- a/classes/helper/Helper.php +++ b/classes/helper/Helper.php @@ -239,17 +239,14 @@ class HelperCore $html .= '
- '.$translations['Collapse All'].' - | - '.$translations['Expand All'].' + '.$translations['Collapse All'].' + '.$translations['Expand All'].' '.(!$use_radio ? ' - | - '.$translations['Check All'].' - | - '.$translations['Uncheck All'].'| - ' : '').($use_search ? ''.$translations['search'].' : ' : '').' -
- '; + '.$translations['Check All'].' + '.$translations['Uncheck All'].'' : '') + .($use_search ? ' + '.$translations['search'].': ' : '') + .''; $home_is_selected = false; foreach ($selected_cat as $cat)