This commit is contained in:
Sanj 2011-10-21 01:01:52 +01:00
parent 04a0e2ea87
commit 50c51a26af

View File

@ -294,8 +294,8 @@ Canvas.prototype.init = function() {
this.jq.droppable({accept:'.resource, .newTextBox',
drop: function(ev, ui) {
var box = $(this).getBox().jq;
// c = edgeArticle[$(this).attr('data-index')];
c = $(this).data("canvas");
c = edgeArticle[$(this).attr('data-index')];
// c = $(this).data("canvas");
if ($(ui.draggable).attr('class') == 'resource ui-draggable') {
r = edgeBin.allResources[$(ui.draggable).attr("data-index")];
if (r.mime == 'image') {