Closed (duplicate)
Project:
Client-Side Adaptive Image
Version:
7.x-1.0-alpha2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2012 at 07:25 UTC
Updated:
27 Aug 2012 at 03:57 UTC
I had a problem today with a view that displayed a views slideshow of images that was filtered by a taxonomy term. The taxonomy term was exposed so selecting the term and submitting would change the slideshow. All worked well without using ajax in the view but when using ajax the cs_adaptive_image behaviour would run twice so outputting 2 images for each slide instead of one...
Anyway, in cs_adaptive_image.js I changed:
$('noscript.adaptive-image').addClass('adaptive-image-processed').each(function(index) {
to
$('noscript.adaptive-image').once().addClass('adaptive-image-processed').each(function(index) {
and all is well.
Comments
Comment #1
david lesieur commentedThis looks like a duplicate of #1667874: Image inserted twice when ajax form submitted on page with CS adaptive images.
Comment #2
2phaI feel stupid.....
Comment #3
david lesieur commentedDon't! The issue was closed, thus not as visible as open issues.
Comment #4
2phafeel stupid....because it was my issue haha.
There is also an issue somewhere on drupal.org where I seem to be having a conversion with myself. In it I answer my own post from a few months before. HAHA