Commit 677115f3 authored by Anchal  Gupta's avatar Anchal Gupta Committed by Alberto Siles
Browse files

Issue #3309378 by Anchal_gupta: Multiple ajax calls in views exposed filter (two blocks)

parent 8de114af
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -12,8 +12,6 @@ libraries-extend:
    - bootstrap_barrio/dropbutton
  file/drupal.file:
    - bootstrap_barrio/file
  views/views.ajax:
    - bootstrap_barrio/views.ajax
  node/drupal.node.preview:
    - bootstrap_barrio/drupal.node.preview

js/modules/views/ajax_view.js

deleted100644 → 0
+0 −24
Original line number Diff line number Diff line
/**
 * @file
 * Extends core ajax_view.js.
 */

(function ($, Drupal) {
  'use strict';

  /**
   * @method
   */
  Drupal.views.ajaxView.prototype.attachExposedFormAjax = function () {
    var that = this;
    this.exposedFormAjax = [];
    $('button[type=submit], input[type=submit], input[type=image]', this.$exposed_form).not('[data-drupal-selector=edit-reset]').each(function (index) {
      var self_settings = $.extend({}, that.element_settings, {
        base: $(this).attr('id'),
        element: this
      });
      that.exposedFormAjax[index] = Drupal.ajax(self_settings);
    });
  };

})(jQuery, Drupal);