// fix category tree if tree but maybe no tree

This commit is contained in:
tDidierjean
2011-11-23 23:18:07 +00:00
parent f92ea0e224
commit 707a6a1997
@@ -1,17 +1,17 @@
{extends file="helper/list/list_header.tpl"}
{block name=leadin}
<script type="text/javascript">
$(document).ready(function(){
$('#go_to_categ').bind('change', function(){
var base_url = '{$base_url}';
if (this.value !== "")
location.href = base_url + '&id_category=' + parseInt(this.value);
else
location.href = base_url;
});
});
</script>
{if isset($category_tree)}
<script type="text/javascript">
$(document).ready(function(){
$('#go_to_categ').bind('change', function(){
var base_url = '{$base_url}';
if (this.value !== "")
location.href = base_url + '&id_category=' + parseInt(this.value);
else
location.href = base_url;
});
});
</script>
{l s='Go to category:'}
<select id="go_to_categ" name="go_to_categ">
{foreach from=$category_tree item=categ}