When clicking on a image in the browse window I'm left with a "This window should close automatically" message and the nid is never actually inserted into my form. The site I'm using it on does have a varied selection of modules and libraries. Testing for conflicts between them hasn't been too involved yet.
It looks like this line in noderef_image_helper.insert.js is where it's failing:
Drupal.behaviors.noderef_image_helper_insert = function(context)
A quick hack to make it work by firing any time it's loaded on a page...which should only be under noderef_image_helper's routines. In my view I have the node title and the image.
var url = window.location.href.split('/');
var field_id = url[url.length-2];
var node_id = url[url.length-1];
window.opener.insert_image_reference(field_id, node_id);
close();
Clearly a better fix is ideal, but time's currently a limiting factor.
Comments
Comment #1
marcred commentedHi Morasta. Could you explain a little more how u fix this? I can't reproduce it. Thanks