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/comments.tpl

    r8128 r9586  
    1 {literal}
    2 <script type="text/javascript">
    3 $(document).ready(function(){
    4   $(".checkComment").click(function(event) {
     1{footer_script}{literal}
     2jQuery(document).ready(function(){
     3  jQuery(".checkComment").click(function(event) {
    54    if (event.target.type !== 'checkbox') {
    6       var checkbox = $(this).children("input[type=checkbox]");
    7       $(checkbox).attr('checked', !$(checkbox).is(':checked'));
     5      var checkbox = jQuery(this).children("input[type=checkbox]");
     6      jQuery(checkbox).attr('checked', !jQuery(checkbox).is(':checked'));
    87    }
    98  });
    109
    11   $("#commentSelectAll").click(function () {
    12     $(".checkComment input[type=checkbox]").attr('checked', true);
     10  jQuery("#commentSelectAll").click(function () {
     11    jQuery(".checkComment input[type=checkbox]").attr('checked', true);
    1312    return false;
    1413  });
    1514
    16   $("#commentSelectNone").click(function () {
    17     $(".checkComment input[type=checkbox]").attr('checked', false);
     15  jQuery("#commentSelectNone").click(function () {
     16    jQuery(".checkComment input[type=checkbox]").attr('checked', false);
    1817    return false;
    1918  });
    2019
    21   $("#commentSelectInvert").click(function () {
    22     $(".checkComment input[type=checkbox]").each(function() {
    23       $(this).attr('checked', !$(this).is(':checked'));
     20  jQuery("#commentSelectInvert").click(function () {
     21    jQuery(".checkComment input[type=checkbox]").each(function() {
     22      jQuery(this).attr('checked', !$(this).is(':checked'));
    2423    });
    2524    return false;
     
    2726
    2827});
    29 </script>
    30 {/literal}
     28{/literal}{/footer_script}
    3129
    3230<div class="titrePage">
Note: See TracChangeset for help on using the changeset viewer.