changeset 19:75106ee96c1e

Library: Deals with <img /> that aren't linked to atoms
author Franck Deroche <defr@ows.fr>
date Wed, 25 Nov 2009 15:51:40 +0000
parents 7ac5a50a9db5
children 97a888cb817c
files mee.js
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mee.js	Fri Nov 20 11:03:08 2009 +0000
+++ b/mee.js	Wed Nov 25 15:51:40 2009 +0000
@@ -21,6 +21,7 @@
           .unbind('dnd_drop')
           .bind('dnd_drop', function(e, data) {
             var rep = Drupal.settings.dndEditorRepresentations[data.representation_id];
+            if (!rep) return;
             $(this)
               .parents('div.mee-wrap-editor-library.mee-processed')
               .find('table.mee-ressource-manager')