diff --git a/src/__celerity_resource_map__.php b/src/__celerity_resource_map__.php index eca391d9a2..cfbcf2c894 100644 --- a/src/__celerity_resource_map__.php +++ b/src/__celerity_resource_map__.php @@ -1873,7 +1873,7 @@ celerity_register_resource_map(array( ), 'javelin-behavior-pholio-mock-view' => array( - 'uri' => '/res/23bf68aa/rsrc/js/application/pholio/behavior-pholio-mock-view.js', + 'uri' => '/res/a6fae7ae/rsrc/js/application/pholio/behavior-pholio-mock-view.js', 'type' => 'js', 'requires' => array( diff --git a/webroot/rsrc/js/application/pholio/behavior-pholio-mock-view.js b/webroot/rsrc/js/application/pholio/behavior-pholio-mock-view.js index 38b536a338..7057cc11f9 100644 --- a/webroot/rsrc/js/application/pholio/behavior-pholio-mock-view.js +++ b/webroot/rsrc/js/application/pholio/behavior-pholio-mock-view.js @@ -12,8 +12,6 @@ JX.behavior('pholio-mock-view', function(config) { var is_typing = false; var wrapper = JX.$('mock-wrapper'); - var image; - var imageData; var startPos; var endPos; @@ -75,7 +73,7 @@ JX.behavior('pholio-mock-view', function(config) { function getRealXY(parent, point) { var pos = {x: (point.x - parent.x), y: (point.y - parent.y)}; - var dim = JX.Vector.getDim(image); + var dim = JX.Vector.getDim(JX.$(config.mainID)); pos.x = Math.max(0, Math.min(pos.x, dim.x)); pos.y = Math.max(0, Math.min(pos.y, dim.y)); @@ -94,9 +92,6 @@ JX.behavior('pholio-mock-view', function(config) { JX.DOM.remove(selection_border); } - image = JX.$(config.mainID); - imageData = JX.Stratcom.getData(image); - e.getRawEvent().target.draggable = false; is_dragging = true;