Closed (fixed)
Project:
Nodereference Explorer
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2011 at 19:31 UTC
Updated:
6 Mar 2011 at 19:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
jpklein commented+1 for getting this rolled into the next release; I just spent three hours hunting this down myself in order to get Lightbox2 to bind to preview images.
Building on what blakehall wrote, I'd suggest getting rid of the call to Drupal.attachBehaviors(this) altogether. In the scope of $.getJSON, 'this' refers to the JSON request object, which doesn't contain any of the returned data.
Additionally, I'd tweak the patch by passing the 'preview' DOM object without a jQuery wrapper to reduce overhead. See the attachment for my updates.
Comment #2
gnindl commentedTested & committed latest patch - great work, thanks!