aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-25 22:29:57 +0000
committerplegall <plg@piwigo.org>2010-03-25 22:29:57 +0000
commit41de132f1e84c623f668ac18c69321d83b3a6770 (patch)
tree148029801d85dbb45be8dd4a4531457eb34c2464 /admin/themes/default/template/include
parentb0199cf741d403e3fdb7ba7ffcf23e8eae9ea429 (diff)
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
Diffstat (limited to 'admin/themes/default/template/include')
-rw-r--r--admin/themes/default/template/include/tag_selection.inc.tpl17
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}