Projet

Général

Profil

Révision 13c3c9b4

Ajouté par Assos Assos il y a environ 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/js/ajax_view.js
57 57
  this.settings = settings;
58 58

  
59 59
  // Add the ajax to exposed forms.
60
  this.$exposed_form = $('form#views-exposed-form-'+ settings.view_name.replace(/_/g, '-') + '-' + settings.view_display_id.replace(/_/g, '-'));
60
  this.$exposed_form = this.$view.children('.view-filters').children('form');
61 61
  this.$exposed_form.once(jQuery.proxy(this.attachExposedFormAjax, this));
62 62

  
63 63
  // Add the ajax to pagers.
......
67 67
    .filter(jQuery.proxy(this.filterNestedViews, this))
68 68
    .once(jQuery.proxy(this.attachPagerAjax, this));
69 69

  
70
  // Add a trigger to update this view specifically. In order to trigger a
71
  // refresh use the following code.
72
  //
73
  // @code
74
  // jQuery('.view-name').trigger('RefreshView');
75
  // @endcode
70 76
  // Add a trigger to update this view specifically.
71 77
  var self_settings = this.element_settings;
72 78
  self_settings.event = 'RefreshView';

Formats disponibles : Unified diff