diff options
Diffstat (limited to 'admin/themes/default/template/include')
-rw-r--r-- | admin/themes/default/template/include/tag_selection.inc.tpl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/admin/themes/default/template/include/tag_selection.inc.tpl b/admin/themes/default/template/include/tag_selection.inc.tpl new file mode 100644 index 000000000..6098dc2a0 --- /dev/null +++ b/admin/themes/default/template/include/tag_selection.inc.tpl @@ -0,0 +1,17 @@ +{literal} +<script> +$(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} |