Commit 56c62d45 authored by catch's avatar catch
Browse files

Issue #2052219 by nod_: Missing .once() names in views JS.

parent d751f1d6
......@@ -63,14 +63,14 @@ Drupal.views.ajaxView = function(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.once(jQuery.proxy(this.attachExposedFormAjax, this));
this.$exposed_form.once('exposed-form', jQuery.proxy(this.attachExposedFormAjax, this));
// Add the ajax to pagers.
// Don't attach to nested views. Doing so would attach multiple behaviors
// to a given element.
.filter(jQuery.proxy(this.filterNestedViews, this))
.once(jQuery.proxy(this.attachPagerAjax, this));
.once('ajax-pager', jQuery.proxy(this.attachPagerAjax, this));
// Add a trigger to update this view specifically. In order to trigger a
// refresh use the following code.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment