# HG changeset patch # User Franck Deroche # Date 1259164300 0 # Node ID 4344489b20e6c2c0a13593562d53024b9cd23616 # Parent c2b8f7e1f4c16a3c85961d2aaa8c3acf05a2350b MEE: Don't take over all images, only those that have been dropped diff -r c2b8f7e1f4c1 -r 4344489b20e6 js/dnd-library.js --- a/js/dnd-library.js Thu Oct 29 17:08:26 2009 +0000 +++ b/js/dnd-library.js Wed Nov 25 15:51:40 2009 +0000 @@ -225,12 +225,13 @@ $(target).bind('dnd_delete', function(e, data) { Drupal.behaviors.dndLibrary.countElements(target, $(data.node).attr('dnd_id'), true); }); - $('head', $(this).contents()).append(''); + $('head', $(this).contents()).append(''); return this; }); }, processIframeDrop: function(drop, id_selector) { var representation_id = id_selector.call(this, drop); + if (!Drupal.settings.dndEditorRepresentations[representation_id]) return; var representation = Drupal.settings.dndEditorRepresentations[representation_id].body; var legend = Drupal.settings.dndEditorRepresentations[representation_id].meta.legend; var target = this, $target = $(target), $drop = $(drop), block;