mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
본문내 이미지 조절 애드온을 꼈을때 이미지갤러리 에디터 컴포넌트의 결과물에서 Javascript오류가 생기는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4231 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4cdce7e4cf
commit
c80b2deaf0
1 changed files with 9 additions and 7 deletions
|
|
@ -113,7 +113,6 @@ function display_gallery_image(obj, is_first_display) {
|
|||
|
||||
target_image.style.marginLeft = x+"px";
|
||||
|
||||
target_image.src = obj.image.src;
|
||||
target_image.srl = obj.srl;
|
||||
target_image.idx = obj.idx;
|
||||
target_image.style.opacity = 1;
|
||||
|
|
@ -121,6 +120,7 @@ function display_gallery_image(obj, is_first_display) {
|
|||
target_image.start_opacity = 0;
|
||||
xWidth(target_image, image_width);
|
||||
xHeight(target_image, image_height);
|
||||
target_image.src = obj.image.src;
|
||||
|
||||
if(image_height<200) {
|
||||
target_image.style.marginTop = (100-image_height/2)+"px";
|
||||
|
|
@ -130,12 +130,14 @@ function display_gallery_image(obj, is_first_display) {
|
|||
target_image.style.marginBottom = "10px";
|
||||
}
|
||||
|
||||
if(resize_scale!=1) {
|
||||
xAddEventListener(target_image, 'click', showOriginalImage);
|
||||
target_image.style.cursor = 'pointer';
|
||||
} else {
|
||||
xRemoveEventListener(target_image, 'click', showOriginalImage);
|
||||
target_image.style.cursor = 'default';
|
||||
if(typeof(showOriginalImage)=='function') {
|
||||
if(resize_scale!=1) {
|
||||
xAddEventListener(target_image, 'click', showOriginalImage);
|
||||
target_image.style.cursor = 'pointer';
|
||||
} else {
|
||||
xRemoveEventListener(target_image, 'click', showOriginalImage);
|
||||
target_image.style.cursor = 'default';
|
||||
}
|
||||
}
|
||||
|
||||
// resize_scale이 1이 아니면, 즉 리사이즈 되었다면 해당 이미지 클릭시 원본을 새창으로 띄워줌
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue