blob: e84ec2431598a3c7f5312ddbb7c5d4a648bdf47f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{footer_script require='jquery'}{literal}
jQuery(document).ready(function(){
jQuery(".tagSelection").on("click", "label", function () {
var parent = jQuery(this).parent('li');
var checkbox = jQuery(this).children("input[type=checkbox]");
if (jQuery(checkbox).is(':checked')) {
parent.addClass("tagSelected");
}
else {
parent.removeClass('tagSelected');
}
});
});
{/literal}{/footer_script}
|