mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-07 02:11:26 +02:00
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:
@@ -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}
|
||||
Reference in New Issue
Block a user