// treeview
This commit is contained in:
@@ -37,7 +37,6 @@
|
||||
else
|
||||
location.href = base_url + '&reset_filter_category=1';
|
||||
});
|
||||
|
||||
// Make sure the checkbox is checked/unchecked when the link is clicked
|
||||
$('#toggle_category_tree').bind('click', function(event){
|
||||
event.preventDefault();
|
||||
@@ -51,13 +50,13 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<div class="bloc-leadin">
|
||||
<div id="container_category_tree">
|
||||
<a href="#" id="toggle_category_tree">
|
||||
<a class="btn btn-default" href="javascript:void(0);" id="toggle_category_tree">
|
||||
<form>
|
||||
<input type="checkbox" {if $is_category_filter}checked="checked"{/if} />{l s='Filter by category'}
|
||||
<input type="checkbox" {if $is_category_filter}checked="checked"{/if} />
|
||||
<i class="icon-tags"></i> {l s='Filter by category'}
|
||||
</form>
|
||||
</a>
|
||||
<div id="block_category_tree" {if !$is_category_filter}style="display:none"{/if}>
|
||||
@@ -66,4 +65,4 @@
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{/block}
|
||||
@@ -23,8 +23,8 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div class="panel">
|
||||
{if $header}{$header}{/if}
|
||||
{if $nodes}
|
||||
{if isset($header)}{$header}{/if}
|
||||
{if isset($nodes)}
|
||||
<ul id="{$id}" class="tree">
|
||||
{$nodes}
|
||||
</ul>
|
||||
|
||||
@@ -24,5 +24,5 @@
|
||||
*}
|
||||
<div class="panel-heading">
|
||||
<i class="icon-tag"></i> {l s=$title}
|
||||
{if $toolbar}{$toolbar}{/if}
|
||||
{if isset($toolbar)}{$toolbar}{/if}
|
||||
</div>
|
||||
-1
@@ -23,7 +23,6 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<li class="tree-folder">
|
||||
|
||||
<span class="tree-folder-name">
|
||||
<input type="radio" name="id-category" value="{$node['id_category']}" />
|
||||
<i class="icon-folder-close"></i>
|
||||
|
||||
+6
-7
@@ -22,13 +22,12 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<li>
|
||||
<i class="icon-folder-open"></i>
|
||||
|
||||
<input type="checkbox" name="id-category[]" value="{$node['id_category']}" />
|
||||
|
||||
<label class="tree-toggler tree-folder-name">{$name}</label>
|
||||
|
||||
<li class="tree-folder">
|
||||
<span class="tree-folder-name">
|
||||
<input type="checkbox" name="id-category[]" value="{$node['id_category']}" />
|
||||
<i class="icon-folder-close"></i>
|
||||
<label class="tree-toggler">{$name}</label>
|
||||
</span>
|
||||
<ul class="tree">
|
||||
{$children}
|
||||
</ul>
|
||||
|
||||
@@ -23,12 +23,9 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<li class="tree-item">
|
||||
|
||||
<label class="tree-item-name">
|
||||
|
||||
<input type="radio" name="id-category" value="{$node['id_category']}" />
|
||||
<i class="tree-dot"></i>
|
||||
{$name}
|
||||
<label>
|
||||
|
||||
</li>
|
||||
+7
-1
@@ -22,4 +22,10 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<li><input type="checkbox" name="id-category[]" value="{$node['id_category']}" /> {$name}</li>
|
||||
<li class="tree-item">
|
||||
<label class="tree-item-name">
|
||||
<input type="checkbox" name="id-category[]" value="{$node['id_category']}" />
|
||||
<i class="tree-dot"></i>
|
||||
{$name}
|
||||
</label>
|
||||
</li>
|
||||
Reference in New Issue
Block a user