// fix category tree if tree but maybe no tree
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
{extends file="helper/list/list_header.tpl"}
|
{extends file="helper/list/list_header.tpl"}
|
||||||
{block name=leadin}
|
{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)}
|
{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:'}
|
{l s='Go to category:'}
|
||||||
<select id="go_to_categ" name="go_to_categ">
|
<select id="go_to_categ" name="go_to_categ">
|
||||||
{foreach from=$category_tree item=categ}
|
{foreach from=$category_tree item=categ}
|
||||||
|
|||||||
Reference in New Issue
Block a user