blob: deedb031c518aa4595779bb467d717f2da9185a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{literal}
<script type="text/javascript">
$(document).ready(function(){
$(".tagSelection label").click(function () {
var parent = $(this).parent('li');
var checkbox = $(this).children("input[type=checkbox]");
if ($(checkbox).is(':checked')) {
$(parent).addClass("tagSelected");
}
else {
$(parent).removeClass('tagSelected');
}
});
});
</script>
{/literal}
|