diff --git a/admin-dev/themes/default/template/helpers/tree/tree_toolbar_link.tpl b/admin-dev/themes/default/template/helpers/tree/tree_toolbar_link.tpl
index ac2bc08af..177084aa2 100644
--- a/admin-dev/themes/default/template/helpers/tree/tree_toolbar_link.tpl
+++ b/admin-dev/themes/default/template/helpers/tree/tree_toolbar_link.tpl
@@ -22,7 +22,7 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
-
+
{if isset($icon_class)}{/if}
{l s=$label}
\ No newline at end of file
diff --git a/classes/helper/HelperTreeCategories.php b/classes/helper/HelperTreeCategories.php
index c28344209..6f5ffeb91 100644
--- a/classes/helper/HelperTreeCategories.php
+++ b/classes/helper/HelperTreeCategories.php
@@ -228,19 +228,20 @@ class HelperTreeCategoriesCore extends TreeCore
if ($this->useCheckBox())
{
- $this->addAction(new TreeToolbarLink(
+ $checkAll = new TreeToolbarLink(
'Check All',
'#',
'checkAllAssociatedCategories($(\'#'.$this->getId().'\'));',
- 'icon-check-sign')
- );
- $this->addAction(new TreeToolbarLink(
+ 'icon-check-sign');
+ $checkAll->setAttribute('id', 'check-all-'.$this->getId());
+ $unCheckAll = new TreeToolbarLink(
'Uncheck All',
'#',
'uncheckAllAssociatedCategories($(\'#'.$this->getId().'\'));',
- 'icon-check-empty')
- );
-
+ 'icon-check-empty');
+ $unCheckAll->setAttribute('id', 'uncheck-all-'.$this->getId());
+ $this->addAction($checkAll);
+ $this->addAction($unCheckAll);
$this->setNodeFolderTemplate('tree_node_folder_checkbox.tpl');
$this->setNodeItemTemplate('tree_node_item_checkbox.tpl');
$this->setAttribute('use_checkbox', $this->useCheckBox());