aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/include/tag_selection.inc.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'admin/themes/default/template/include/tag_selection.inc.tpl')
-rw-r--r--admin/themes/default/template/include/tag_selection.inc.tpl20
1 files changed, 9 insertions, 11 deletions
diff --git a/admin/themes/default/template/include/tag_selection.inc.tpl b/admin/themes/default/template/include/tag_selection.inc.tpl
index deedb031c..680c6b85e 100644
--- a/admin/themes/default/template/include/tag_selection.inc.tpl
+++ b/admin/themes/default/template/include/tag_selection.inc.tpl
@@ -1,17 +1,15 @@
-{literal}
-<script type="text/javascript">
-$(document).ready(function(){
- $(".tagSelection label").click(function () {
- var parent = $(this).parent('li');
- var checkbox = $(this).children("input[type=checkbox]");
+{footer_script require='jquery'}{literal}
+jQuery(document).ready(function(){
+ jQuery(".tagSelection label").click(function () {
+ var parent = jQuery(this).parent('li');
+ var checkbox = jQuery(this).children("input[type=checkbox]");
- if ($(checkbox).is(':checked')) {
- $(parent).addClass("tagSelected");
+ if (jQuery(checkbox).is(':checked')) {
+ jQuery(parent).addClass("tagSelected");
}
else {
- $(parent).removeClass('tagSelected');
+ jQuery(parent).removeClass('tagSelected');
}
});
});
-</script>
-{/literal}
+{/literal}{/footer_script}