- Timestamp:
- Mar 9, 2011, 3:22:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/include/tag_selection.inc.tpl
r5931 r9586 1 {literal} 2 <script type="text/javascript"> 3 $(document).ready(function(){ 4 $(".tagSelection label").click(function () { 5 var parent = $(this).parent('li'); 6 var checkbox = $(this).children("input[type=checkbox]"); 1 {footer_script require='jquery'}{literal} 2 jQuery(document).ready(function(){ 3 jQuery(".tagSelection label").click(function () { 4 var parent = jQuery(this).parent('li'); 5 var checkbox = jQuery(this).children("input[type=checkbox]"); 7 6 8 if ( $(checkbox).is(':checked')) {9 $(parent).addClass("tagSelected");7 if (jQuery(checkbox).is(':checked')) { 8 jQuery(parent).addClass("tagSelected"); 10 9 } 11 10 else { 12 $(parent).removeClass('tagSelected');11 jQuery(parent).removeClass('tagSelected'); 13 12 } 14 13 }); 15 14 }); 16 </script> 17 {/literal} 15 {/literal}{/footer_script}
Note: See TracChangeset
for help on using the changeset viewer.