feature 1529: make the checked tags more obvious (distinct background color)

git-svn-id: http://piwigo.org/svn/trunk@5366 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2010-03-25 22:29:57 +00:00
parent b0199cf741
commit 41de132f1e
5 changed files with 25 additions and 1 deletions
@@ -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}