Commit dd85e54a authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1799594 by nod_, Wim Leers, jessebeach, jcisio: Update to jQuery 1.9 version.

parent 95516e65
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -390,7 +390,7 @@ Drupal.ajax.prototype.beforeSend = function (xmlhttprequest, options) {
  // interaction while the Ajax request is in progress. ajax.ajaxing prevents
  // the element from triggering a new request, but does not prevent the user
  // from changing its value.
  $(this.element).addClass('progress-disabled').attr('disabled', true);
  $(this.element).addClass('progress-disabled').prop('disabled', true);

  // Insert progressbar or throbber.
  if (this.progress.type === 'bar') {
@@ -425,7 +425,7 @@ Drupal.ajax.prototype.success = function (response, status) {
  if (this.progress.object) {
    this.progress.object.stopMonitoring();
  }
  $(this.element).removeClass('progress-disabled').removeAttr('disabled');
  $(this.element).removeClass('progress-disabled').prop('disabled', false);

  Drupal.freezeHeight();

@@ -493,7 +493,7 @@ Drupal.ajax.prototype.error = function (response, uri) {
  // Undo hide.
  $(this.wrapper).show();
  // Re-enable the element.
  $(this.element).removeClass('progress-disabled').removeAttr('disabled');
  $(this.element).removeClass('progress-disabled').prop('disabled', false);
  // Reattach behaviors, if they were detached in beforeSerialize().
  if (this.form) {
    var settings = response.settings || this.settings || Drupal.settings;
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ Drupal.behaviors.autocomplete = {
        acdb[uri] = new Drupal.ACDB(uri);
      }
      var $input = $('#' + this.id.substr(0, this.id.length - 13))
        .attr('autocomplete', 'OFF')
        .prop('autocomplete', 'OFF')
        .attr('aria-autocomplete', 'list');
      $($input[0].form).submit(Drupal.autocompleteSubmit);
      $input.parent()
+5 −5
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ function CollapsibleDetails(node, settings) {
  // element that is targeted by the URI fragment identifier.
  var anchor = location.hash && location.hash !== '#' ? ', ' + location.hash : '';
  if (this.$node.find('.error' + anchor).length) {
    this.$node.attr('open', true);
    this.$node.prop('open', true);
  }
  // Initialize and setup the summary,
  this.setupSummary();
@@ -96,7 +96,7 @@ $.extend(CollapsibleDetails.prototype, {
    var $legend = this.$node.find('> summary');

    $('<span class="details-summary-prefix element-invisible"></span>')
      .append(this.$node.attr('open') ? Drupal.t('Hide') : Drupal.t('Show'))
      .append(this.$node.prop('open') ? Drupal.t('Hide') : Drupal.t('Show'))
      .prependTo($legend)
      .after(' ');

@@ -129,7 +129,7 @@ $.extend(CollapsibleDetails.prototype, {
    if (this.animating) {
      return;
    }
    if (!this.$node.attr('open')) {
    if (!this.$node.prop('open')) {
      var $content = this.$node.find('> .details-wrapper').hide();
      this.$node
        .trigger({ type:'collapsed', value:false })
@@ -153,7 +153,7 @@ $.extend(CollapsibleDetails.prototype, {
   * Completed opening details element.
   */
  onCompleteSlideDown: function () {
    this.$node.attr('open', true);
    this.$node.prop('open', true);
    this.$node.trigger('completeSlideDown');
    this.animating = false;
  },
@@ -161,7 +161,7 @@ $.extend(CollapsibleDetails.prototype, {
   * Completed closing details element.
   */
  onCompleteSlideUp: function () {
    this.$node.attr('open', false);
    this.$node.prop('open', false);
    this.$node
      .find('> summary span.details-summary-prefix').html(Drupal.t('Show'));
    this.$node.trigger('completeSlideUp');
+54 −57
Original line number Diff line number Diff line
@@ -261,8 +261,6 @@ Drupal.t = function (str, args, options) {
/**
 * Adds an HTML element and method to trigger audio UAs to read system messages.
 */
(function (document, Drupal) {

var liveElement;

/**
@@ -319,7 +317,6 @@ Drupal.t = function (str, args, options) {
    liveElement.setAttribute('aria-busy', 'false');
  }
};
}(document, Drupal));

/**
 * Returns the URL to a Drupal page.
+1368 −7

File changed.

Preview size limit exceeded, changes collapsed.

Loading