Jquery check added to check default category
This commit is contained in:
parent
04f4f01e7b
commit
2a9585659d
1 changed files with 9 additions and 1 deletions
|
@ -74,4 +74,12 @@
|
|||
|
||||
{/if}
|
||||
|
||||
{include file="$style_dir/blocks/pagination.html" }
|
||||
{include file="$style_dir/blocks/pagination.html" }
|
||||
|
||||
<script type="text/javascript">
|
||||
var total_cats = "{$total_cats}";
|
||||
for (i = 1; i <= total_cats; i++) {
|
||||
$('input:checkbox[name="category'+i+'[]"]:first').attr('checked', 'checked');
|
||||
}
|
||||
|
||||
</script>
|
Loading…
Add table
Reference in a new issue