// Prevent click event in tree toolbar buttons
This commit is contained in:
1 parent
2316bb50ba
commit
8bf49049eb
2 files changed
+8
-8
No files matched your search
@@ -215,13 +215,13 @@ class HelperTreeCategoriesCore extends TreeCore
|
|||||||
$collapse_all = new TreeToolbarLink(
|
$collapse_all = new TreeToolbarLink(
|
||||||
'Collapse All',
|
'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');
|
'icon-collapse-alt');
|
||||||
$collapse_all->setAttribute('id', 'collapse-all-'.$this->getId());
|
$collapse_all->setAttribute('id', 'collapse-all-'.$this->getId());
|
||||||
$expand_all = new TreeToolbarLink(
|
$expand_all = new TreeToolbarLink(
|
||||||
'Expand All',
|
'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');
|
'icon-expand-alt');
|
||||||
$expand_all->setAttribute('id', 'expand-all-'.$this->getId());
|
$expand_all->setAttribute('id', 'expand-all-'.$this->getId());
|
||||||
$this->addAction($collapse_all);
|
$this->addAction($collapse_all);
|
||||||
@@ -232,13 +232,13 @@ class HelperTreeCategoriesCore extends TreeCore
|
|||||||
$check_all = new TreeToolbarLink(
|
$check_all = new TreeToolbarLink(
|
||||||
'Check All',
|
'Check All',
|
||||||
'#',
|
'#',
|
||||||
'checkAllAssociatedCategories($(\'#'.$this->getId().'\'));',
|
'checkAllAssociatedCategories($(\'#'.$this->getId().'\')); return false;',
|
||||||
'icon-check-sign');
|
'icon-check-sign');
|
||||||
$check_all->setAttribute('id', 'check-all-'.$this->getId());
|
$check_all->setAttribute('id', 'check-all-'.$this->getId());
|
||||||
$uncheck_all = new TreeToolbarLink(
|
$uncheck_all = new TreeToolbarLink(
|
||||||
'Uncheck All',
|
'Uncheck All',
|
||||||
'#',
|
'#',
|
||||||
'uncheckAllAssociatedCategories($(\'#'.$this->getId().'\'));',
|
'uncheckAllAssociatedCategories($(\'#'.$this->getId().'\')); return false;',
|
||||||
'icon-check-empty');
|
'icon-check-empty');
|
||||||
$uncheck_all->setAttribute('id', 'uncheck-all-'.$this->getId());
|
$uncheck_all->setAttribute('id', 'uncheck-all-'.$this->getId());
|
||||||
$this->addAction($check_all);
|
$this->addAction($check_all);
|
||||||
|
|||||||
@@ -115,22 +115,22 @@ class HelperTreeShopsCore extends TreeCore
|
|||||||
new TreeToolbarLink(
|
new TreeToolbarLink(
|
||||||
'Collapse All',
|
'Collapse All',
|
||||||
'#',
|
'#',
|
||||||
'$(\'#'.$this->getId().'\').tree(\'collapseAll\')',
|
'$(\'#'.$this->getId().'\').tree(\'collapseAll\'); return false;',
|
||||||
'icon-collapse-alt'),
|
'icon-collapse-alt'),
|
||||||
new TreeToolbarLink(
|
new TreeToolbarLink(
|
||||||
'Expand All',
|
'Expand All',
|
||||||
'#',
|
'#',
|
||||||
'$(\'#'.$this->getId().'\').tree(\'expandAll\')',
|
'$(\'#'.$this->getId().'\').tree(\'expandAll\'); return false;',
|
||||||
'icon-expand-alt'),
|
'icon-expand-alt'),
|
||||||
new TreeToolbarLink(
|
new TreeToolbarLink(
|
||||||
'Check All',
|
'Check All',
|
||||||
'#',
|
'#',
|
||||||
'checkAllAssociatedShops($(\'#'.$this->getId().'\'));',
|
'checkAllAssociatedShops($(\'#'.$this->getId().'\')); return false;',
|
||||||
'icon-check-sign'),
|
'icon-check-sign'),
|
||||||
new TreeToolbarLink(
|
new TreeToolbarLink(
|
||||||
'Uncheck All',
|
'Uncheck All',
|
||||||
'#',
|
'#',
|
||||||
'uncheckAllAssociatedShops($(\'#'.$this->getId().'\'));',
|
'uncheckAllAssociatedShops($(\'#'.$this->getId().'\')); return false;',
|
||||||
'icon-check-empty')
|
'icon-check-empty')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user