// Prevent click event in tree toolbar buttons
This commit is contained in:
@@ -215,13 +215,13 @@ class HelperTreeCategoriesCore extends TreeCore
|
||||
$collapse_all = new TreeToolbarLink(
|
||||
'Collapse All',
|
||||
'#',
|
||||
'$(\'#'.$this->getId().'\').tree(\'collapseAll\');$(\'#collapse-all-'.$this->getId().'\').hide();$(\'#expand-all-'.$this->getId().'\').show();',
|
||||
'$(\'#'.$this->getId().'\').tree(\'collapseAll\');$(\'#collapse-all-'.$this->getId().'\').hide();$(\'#expand-all-'.$this->getId().'\').show(); return false;',
|
||||
'icon-collapse-alt');
|
||||
$collapse_all->setAttribute('id', 'collapse-all-'.$this->getId());
|
||||
$expand_all = new TreeToolbarLink(
|
||||
'Expand All',
|
||||
'#',
|
||||
'$(\'#'.$this->getId().'\').tree(\'expandAll\');$(\'#collapse-all-'.$this->getId().'\').show();$(\'#expand-all-'.$this->getId().'\').hide();',
|
||||
'$(\'#'.$this->getId().'\').tree(\'expandAll\');$(\'#collapse-all-'.$this->getId().'\').show();$(\'#expand-all-'.$this->getId().'\').hide(); return false;',
|
||||
'icon-expand-alt');
|
||||
$expand_all->setAttribute('id', 'expand-all-'.$this->getId());
|
||||
$this->addAction($collapse_all);
|
||||
@@ -232,13 +232,13 @@ class HelperTreeCategoriesCore extends TreeCore
|
||||
$check_all = new TreeToolbarLink(
|
||||
'Check All',
|
||||
'#',
|
||||
'checkAllAssociatedCategories($(\'#'.$this->getId().'\'));',
|
||||
'checkAllAssociatedCategories($(\'#'.$this->getId().'\')); return false;',
|
||||
'icon-check-sign');
|
||||
$check_all->setAttribute('id', 'check-all-'.$this->getId());
|
||||
$uncheck_all = new TreeToolbarLink(
|
||||
'Uncheck All',
|
||||
'#',
|
||||
'uncheckAllAssociatedCategories($(\'#'.$this->getId().'\'));',
|
||||
'uncheckAllAssociatedCategories($(\'#'.$this->getId().'\')); return false;',
|
||||
'icon-check-empty');
|
||||
$uncheck_all->setAttribute('id', 'uncheck-all-'.$this->getId());
|
||||
$this->addAction($check_all);
|
||||
|
||||
@@ -115,22 +115,22 @@ class HelperTreeShopsCore extends TreeCore
|
||||
new TreeToolbarLink(
|
||||
'Collapse All',
|
||||
'#',
|
||||
'$(\'#'.$this->getId().'\').tree(\'collapseAll\')',
|
||||
'$(\'#'.$this->getId().'\').tree(\'collapseAll\'); return false;',
|
||||
'icon-collapse-alt'),
|
||||
new TreeToolbarLink(
|
||||
'Expand All',
|
||||
'#',
|
||||
'$(\'#'.$this->getId().'\').tree(\'expandAll\')',
|
||||
'$(\'#'.$this->getId().'\').tree(\'expandAll\'); return false;',
|
||||
'icon-expand-alt'),
|
||||
new TreeToolbarLink(
|
||||
'Check All',
|
||||
'#',
|
||||
'checkAllAssociatedShops($(\'#'.$this->getId().'\'));',
|
||||
'checkAllAssociatedShops($(\'#'.$this->getId().'\')); return false;',
|
||||
'icon-check-sign'),
|
||||
new TreeToolbarLink(
|
||||
'Uncheck All',
|
||||
'#',
|
||||
'uncheckAllAssociatedShops($(\'#'.$this->getId().'\'));',
|
||||
'uncheckAllAssociatedShops($(\'#'.$this->getId().'\')); return false;',
|
||||
'icon-check-empty')
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user