mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4257 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e2b3f664d5
commit
e7e163b6e9
1 changed files with 4 additions and 10 deletions
|
|
@ -49,16 +49,10 @@ function resizeImageContents() {
|
|||
var new_h = Math.round(obj_height * new_w/obj_width);
|
||||
xWidth(obj, new_w);
|
||||
xHeight(obj, new_h);
|
||||
xAddEventListener(obj,"click", showOriginalImage);
|
||||
// 선택된 이미지가 부모보다 작을 경우 일단 원본 이미지를 불러와서 비교
|
||||
} else {
|
||||
var orig_img = new Image();
|
||||
orig_img.src = obj.src;
|
||||
if(orig_img.width > parent_width - 2 || orig_img.width != obj_width) {
|
||||
obj.style.cursor = "pointer";
|
||||
xAddEventListener(obj,"click", showOriginalImage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
obj.style.cursor = "pointer";
|
||||
xAddEventListener(obj,"click", showOriginalImage);
|
||||
|
||||
imageGalleryIndex[j][i] = obj.src;
|
||||
obj.setAttribute("rel", j+','+i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue