diff options
Diffstat (limited to 'js/mediators')
-rwxr-xr-x | js/mediators/drag-drop-mediator.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/mediators/drag-drop-mediator.js b/js/mediators/drag-drop-mediator.js index 9d5dd256..5fe61167 100755 --- a/js/mediators/drag-drop-mediator.js +++ b/js/mediators/drag-drop-mediator.js | |||
@@ -105,14 +105,14 @@ exports.DragDropMediator = Montage.create(Component, { | |||
105 | element = NJUtils.makeNJElement('embed', 'SVG', 'block');//TODO: Verify this is proper | 105 | element = NJUtils.makeNJElement('embed', 'SVG', 'block');//TODO: Verify this is proper |
106 | element.src = url+'/'+fileName; | 106 | element.src = url+'/'+fileName; |
107 | element.type = 'image/svg+xml'; | 107 | element.type = 'image/svg+xml'; |
108 | //TODO: Remove temp fix for SVG redraw on drop | ||
109 | element.onload = function () { | ||
110 | NJevent("elementAdding", {el: element, data: rules}); | ||
111 | } | ||
112 | } else { | 108 | } else { |
113 | element = NJUtils.makeNJElement('image', 'image', 'image'); | 109 | element = NJUtils.makeNJElement('image', 'image', 'image'); |
114 | element.src = url+'/'+fileName; | 110 | element.src = url+'/'+fileName; |
115 | } | 111 | } |
112 | //TODO: Remove temp fix for elements to redraw on drop | ||
113 | element.onload = function () { | ||
114 | NJevent("elementAdding", {el: element, data: rules}); | ||
115 | } | ||
116 | // | 116 | // |
117 | rules = { | 117 | rules = { |
118 | 'position': 'absolute', | 118 | 'position': 'absolute', |