Ignore:
Timestamp:
Mar 9, 2011, 3:22:48 PM (13 years ago)
Author:
patdenice
Message:

feature:2114
Simplify all admin templates.

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}
     2jQuery(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]");
    76
    8     if ($(checkbox).is(':checked')) {
    9        $(parent).addClass("tagSelected");
     7    if (jQuery(checkbox).is(':checked')) {
     8      jQuery(parent).addClass("tagSelected");
    109    }
    1110    else {
    12        $(parent).removeClass('tagSelected');
     11      jQuery(parent).removeClass('tagSelected');
    1312    }
    1413  });
    1514});
    16 </script>
    17 {/literal}
     15{/literal}{/footer_script}
Note: See TracChangeset for help on using the changeset viewer.