Commit b0a842e6 authored by Jason Smith's avatar Jason Smith Committed by Damien McKenna
Browse files

Issue #2416623 by Silicon.Valet, alexdmccabe, DrCord, DamienMcKenna: jQuery...

Issue #2416623 by Silicon.Valet, alexdmccabe, DrCord, DamienMcKenna: jQuery .attr() deprecated/removed for use with "checked" and "disabled" properties.
parent f335cd1b
Loading
Loading
Loading
Loading
+2 −2
Changes for js/base.js: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
      $('a.views-remove-link').once('views-processed').click(function(event) {
        var id = $(this).attr('id').replace('views-remove-link-', '');
        $('#views-row-' + id).hide();
        $('#views-removed-' + id).attr('checked', true);
        $('#views-removed-' + id).get(0).checked = true;
        event.preventDefault();
      });
      /**
@@ -32,7 +32,7 @@
        .click(function() {
          var id = $(this).attr('id').replace('display-remove-link-', '');
          $('#display-row-' + id).hide();
          $('#display-removed-' + id).attr('checked', true);
          $('#display-removed-' + id).get(0).checked = true;
          return false;
        });
    }
+3 −3
Changes for js/views-admin.js: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -775,14 +775,14 @@ Drupal.behaviors.viewsFilterConfigSelectAll.attach = function(context) {
      var checked = $(this).is(':checked');
      // Update all checkbox beside the select all checkbox.
      $(this).parents('.form-checkboxes').find('input[type=checkbox]').each(function() {
        $(this).attr('checked', checked);
        $(this).get(0).checked = true;
      });
    });
  // Uncheck the select all checkbox if any of the others are unchecked.
  $('#views-ui-config-item-form div.form-type-checkbox').not($('.form-item-options-value-all')).find('input[type=checkbox]').each(function() {
    $(this).click(function() {
      if ($(this).is('checked') == 0) {
        $('#edit-options-value-all').removeAttr('checked');
        $('#edit-options-value-all').get(0).checked = false;
      }
    });
  });
@@ -866,7 +866,7 @@ Drupal.behaviors.viewsUiChangeDefaultWidget.attach = function (context, settings
  }
  // Update on widget change.
  $('input[name="options[group_info][multiple]"]').change(function() {
    change_default_widget($(this).attr("checked"));
    change_default_widget($(this).get(0).checked);
  });
  // Update the first time the form is rendered.
  $('input[name="options[group_info][multiple]"]').trigger('change');