source: trunk/admin/themes/default/template/include/tag_selection.inc.tpl @ 5931

Last change on this file since 5931 was 5931, checked in by nikrou, 14 years ago

Fix some errors in generated html

File size: 401 bytes
Line 
1{literal}
2<script type="text/javascript">
3$(document).ready(function(){
4  $(".tagSelection label").click(function () {
5    var parent = $(this).parent('li');
6    var checkbox = $(this).children("input[type=checkbox]");
7
8    if ($(checkbox).is(':checked')) {
9       $(parent).addClass("tagSelected");
10    }
11    else {
12       $(parent).removeClass('tagSelected');
13    }
14  });
15});
16</script>
17{/literal}
Note: See TracBrowser for help on using the repository browser.