aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-15 21:11:49 -0700
committerJose Antonio Marquez2012-03-15 21:11:49 -0700
commitc9b03565de5e60b50d0e5f80e40169be1efe339e (patch)
treedd7adff9c4e8c2e9b2b0108f58e4e75be6d51eea /js/mediators
parent980c27df9de95395dcedf7c3802aa96904147aa3 (diff)
downloadninja-c9b03565de5e60b50d0e5f80e40169be1efe339e.tar.gz
Temp fix applied to all elements
This should be moved to 'makeNJElement' to account for the element to be loaded.
Diffstat (limited to 'js/mediators')
-rwxr-xr-xjs/mediators/drag-drop-mediator.js8
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',