in blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ImageManager/assets/EditorContent.js [334:421]
function drags(e){
if(!ie&&!ns6){
return;
}
var _19=ns6?e.target:event.srcElement;
var _1a=ns6?"HTML":"BODY";
while(_19.tagName!=_1a&&!(_19.className=="crop"||_19.className=="handleBox"||_19.className=="selection"||_19.className=="selectionWhite")){
_19=ns6?_19.parentNode:_19.parentElement;
}
if(_19.className=="handleBox"){
if(content!=null){
if(content.width!=null&&content.height!=null){
content.width=0;
content.height=0;
}
}
resizeHandle=_19.id;
x=ns6?e.clientX:event.clientX;
y=ns6?e.clientY:event.clientY;
oa_w=parseInt(ant.style.width);
oa_h=parseInt(ant.style.height);
oa_x=parseInt(ant.style.left);
oa_y=parseInt(ant.style.top);
dragapproved=true;
document.onmousemove=moveHandle;
return false;
}else{
if((_19.className=="selection"||_19.className=="selectionWhite")&&mode=="crop"){
x=ns6?e.clientX:event.clientX;
y=ns6?e.clientY:event.clientY;
oa_x=parseInt(ant.style.left);
oa_y=parseInt(ant.style.top);
dragapproved=true;
document.onmousemove=moveContent;
return false;
}else{
if(_19.className=="crop"&&mode=="crop"){
if(content!=null){
if(content.width!=null&&content.height!=null){
content.width=0;
content.height=0;
}
}
if(status==null){
status=MM_findObj("status");
}
if(ant==null){
ant=MM_findObj("ant");
}
if(canvas==null){
canvas=MM_findObj("imgCanvas");
}
if(content==null){
content=MM_findObj("cropContent");
}
if(pic_width==null||pic_height==null){
image=MM_findObj("theImage");
pic_width=image.width;
pic_height=image.height;
}
ant.style.visibility="visible";
obj=_19;
dragapproved=true;
z=_19;
temp1=parseInt(z.style.left+0);
temp2=parseInt(z.style.top+0);
x=ns6?e.clientX:event.clientX;
y=ns6?e.clientY:event.clientY;
document.onmousemove=move;
return false;
}else{
if(_19.className=="crop"&&mode=="measure"){
if(ant==null){
ant=MM_findObj("ant");
}
if(canvas==null){
canvas=MM_findObj("imgCanvas");
}
x=ns6?e.clientX:event.clientX;
y=ns6?e.clientY:event.clientY;
dragapproved=true;
document.onmousemove=measure;
return false;
}
}
}
}
}