security update core+modules
This commit is contained in:
@@ -57,7 +57,7 @@ Drupal.views.ajaxView = function(settings) {
|
||||
this.settings = settings;
|
||||
|
||||
// Add the ajax to exposed forms.
|
||||
this.$exposed_form = $('form#views-exposed-form-'+ settings.view_name.replace(/_/g, '-') + '-' + settings.view_display_id.replace(/_/g, '-'));
|
||||
this.$exposed_form = this.$view.children('.view-filters').children('form');
|
||||
this.$exposed_form.once(jQuery.proxy(this.attachExposedFormAjax, this));
|
||||
|
||||
// Add the ajax to pagers.
|
||||
@@ -66,10 +66,21 @@ Drupal.views.ajaxView = function(settings) {
|
||||
// to a given element.
|
||||
.filter(jQuery.proxy(this.filterNestedViews, this))
|
||||
.once(jQuery.proxy(this.attachPagerAjax, this));
|
||||
|
||||
// Add a trigger to update this view specifically. In order to trigger a
|
||||
// refresh use the following code.
|
||||
//
|
||||
// @code
|
||||
// jQuery('.view-name').trigger('RefreshView');
|
||||
// @endcode
|
||||
// Add a trigger to update this view specifically.
|
||||
var self_settings = this.element_settings;
|
||||
self_settings.event = 'RefreshView';
|
||||
this.refreshViewAjax = new Drupal.ajax(this.selector, this.$view, self_settings);
|
||||
};
|
||||
|
||||
Drupal.views.ajaxView.prototype.attachExposedFormAjax = function() {
|
||||
var button = $('input[type=submit], input[type=image]', this.$exposed_form);
|
||||
var button = $('input[type=submit], button[type=submit], input[type=image]', this.$exposed_form);
|
||||
button = button[0];
|
||||
|
||||
this.exposedFormAjax = new Drupal.ajax($(button).attr('id'), button, this.element_settings);
|
||||
|
||||
Reference in New Issue
Block a user