aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default
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
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')
-rw-r--r--admin/themes/default/template/element_set_global.tpl2
-rw-r--r--admin/themes/default/template/include/tag_selection.inc.tpl17
-rw-r--r--admin/themes/default/template/tags.tpl2
3 files changed, 20 insertions, 1 deletions
diff --git a/admin/themes/default/template/element_set_global.tpl b/admin/themes/default/template/element_set_global.tpl
index 960c229cb..f226bff84 100644
--- a/admin/themes/default/template/element_set_global.tpl
+++ b/admin/themes/default/template/element_set_global.tpl
@@ -1,4 +1,4 @@
-
+{include file='include/tag_selection.inc.tpl'}
{include file='include/datepicker.inc.tpl'}
{literal}
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}
diff --git a/admin/themes/default/template/tags.tpl b/admin/themes/default/template/tags.tpl
index 4d7031897..bfc8bd2de 100644
--- a/admin/themes/default/template/tags.tpl
+++ b/admin/themes/default/template/tags.tpl
@@ -1,3 +1,5 @@
+{include file='include/tag_selection.inc.tpl'}
+
<div class="titrePage">
<h2>{'Manage tags'|@translate}</h2>
</div>