Added: check all and uncheck all option in the tree for normal products and scroll bar for the rendered tree

This commit is contained in:
vishalsingh.qlo325
2024-05-22 15:15:15 +05:30
parent 19c4e45320
commit 67a0b2dcf3
4 changed files with 27 additions and 8 deletions

View File

@@ -62,4 +62,8 @@
.tree-panel-label-title
font-weight: 400
margin: 0
@include padding(0, 0, 0, 8px)
@include padding(0, 0, 0, 8px)
.tree.cattree
max-height: 350px
overflow-y: auto

View File

@@ -48,17 +48,15 @@
}
{if isset($use_checkbox) && $use_checkbox == true}
function checkAllAssociatedCategories($tree)
function checkAllAssociatedHotels($tree)
{
$tree.find(':input[type=checkbox]').each(function(){
$(this).prop('checked', true);
addDefaultCategory($(this));
$(this).parent().addClass('tree-selected');
});
}
function uncheckAllAssociatedCategories($tree)
function uncheckAllAssociatedHotels($tree)
{
$tree.find(':input[type=checkbox]').each(function(){
$(this).prop('checked', false);