Support from Acquia helps fund testing for Drupal Acquia logo

Comments

n_vashenko’s picture

FileSize
820 bytes
lklimek’s picture

Version: 7.x-3.8 » 7.x-3.11
Status: Active » Needs review

I also have this issue, reproduced on clean drupal install.

Repro scenario:
1. install Drupal 7 + Views 3.11
2. create an ajax-enabled view 'test' and some content to display in this view
3. go to the view page and execute in JS console Drupal.attachBehaviors, for example: Drupal.attachBehaviors(jQuery('#header'))
4. inspect div containing your view (the one with class "view"): it now contains 2 jQuery event handlers attached to RefreshView event
5. repeat point 3 several times and notice that number of RefreshView handlers is increasing with every attachBehaviors() call

The patch #1 fixes the issue for me.

Status: Needs review » Needs work

The last submitted patch, 1: view-refresh-multiple-ajax-calls.patch, failed testing.

dave.erwin’s picture

thanks for the patch, this issue was driving me crazy.
resubmitting patch for testing.

dave.erwin’s picture

actually, I did some testing and was getting the error:
Uncaught TypeError: self.setInterval is not a function
when using the sharethis service, I changed
self = this;
to
var self = this;
to clear up the error

KarlShea’s picture

Status: Needs work » Reviewed & tested by the community

Fixed my issue.

KarlShea’s picture

KarlShea’s picture

Version: 7.x-3.11 » 7.x-3.x-dev

Sorry for the spam, forgot to update version

maximpodorov’s picture

The patch is renamed to include the issue number.

dsutter’s picture

RTBC+ patch #9

gdaw’s picture

Confirmed RTBC+1 for patch #9

apaderno’s picture

Issue tags: -, -#views
DamienMcKenna’s picture

DamienMcKenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.