Changeset 23391


Ignore:
Timestamp:
Jun 20, 2013, 10:12:04 AM (11 years ago)
Author:
plg
Message:

bug fixed: adapt for latest version of jQuery. Pending buttons All/None/Invert were no longer working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/community/admin_pendings.tpl

    r16637 r23391  
    3535    if (event.target.type !== 'checkbox') {
    3636      var checkbox = $(this).children("input[type=checkbox]");
    37       $(checkbox).attr('checked', !$(checkbox).is(':checked'));
     37      jQuery(checkbox).prop('checked', !jQuery(checkbox).prop('checked'));
    3838    }
    3939    checkSelectedRows();
     
    4141
    4242  $("#selectAll").click(function () {
    43     $(".checkPhoto input[type=checkbox]").attr('checked', true);
     43    $(".checkPhoto input[type=checkbox]").prop('checked', true);
    4444    checkSelectedRows();
    4545    return false;
     
    4747
    4848  $("#selectNone").click(function () {
    49     $(".checkPhoto input[type=checkbox]").attr('checked', false);
     49    $(".checkPhoto input[type=checkbox]").prop('checked', false);
    5050    checkSelectedRows();
    5151    return false;
     
    5454  $("#selectInvert").click(function () {
    5555    $(".checkPhoto input[type=checkbox]").each(function() {
    56       $(this).attr('checked', !$(this).is(':checked'));
     56      jQuery(this).prop('checked', !jQuery(this).prop('checked'));
    5757    });
    5858    checkSelectedRows();
Note: See TracChangeset for help on using the changeset viewer.