Ignore:
Timestamp:
May 21, 2013, 11:02:17 PM (11 years ago)
Author:
rvelices
Message:

compatibility with jquery 1.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/comments.tpl

    r18064 r22812  
    1616    var checkbox = jQuery(this).children("input[type=checkbox]");
    1717    if (event.target.type !== 'checkbox') {
    18       jQuery(checkbox).attr('checked', !jQuery(checkbox).is(':checked'));
     18      jQuery(checkbox).prop('checked', !jQuery(checkbox).prop('checked'));
    1919    }
    2020    highlighComments();
     
    2222
    2323  jQuery("#commentSelectAll").click(function () {
    24     jQuery(".checkComment input[type=checkbox]").attr('checked', true);
     24    jQuery(".checkComment input[type=checkbox]").prop('checked', true);
    2525    highlighComments();
    2626    return false;
     
    2828
    2929  jQuery("#commentSelectNone").click(function () {
    30     jQuery(".checkComment input[type=checkbox]").attr('checked', false);
     30    jQuery(".checkComment input[type=checkbox]").prop('checked', false);
    3131    highlighComments();
    3232    return false;
     
    3535  jQuery("#commentSelectInvert").click(function () {
    3636    jQuery(".checkComment input[type=checkbox]").each(function() {
    37       jQuery(this).attr('checked', !$(this).is(':checked'));
     37      jQuery(this).prop('checked', !$(this).prop('checked'));
    3838    });
    3939    highlighComments();
     
    4444{/literal}{/footer_script}
    4545
    46 <div class="titrePage">
    47   <h2>{'Pending Comments'|@translate} {$TABSHEET_TITLE}</h2>
    48 </div>
     46<h2>{'Pending Comments'|@translate} {$TABSHEET_TITLE}</h2>
    4947
    5048{if !empty($comments) }
     
    7674
    7775  <p class="bottomButtons">
    78     <input class="submit" type="submit" name="validate" value="{'Validate'|@translate}">
    79     <input class="submit" type="submit" name="reject" value="{'Reject'|@translate}">
     76    <input type="submit" name="validate" value="{'Validate'|@translate}">
     77    <input type="submit" name="reject" value="{'Reject'|@translate}">
    8078  </p>
    8179
Note: See TracChangeset for help on using the changeset viewer.