mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 02:10:02 +09:00
내용중 큰 이미지가 있을 경우 원본을 보여주게 하는 기능중에 zbxe기본 파일들에 대해서는 작동하지 않도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1993 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c4d1ed1c2e
commit
46e3cc9ff0
1 changed files with 4 additions and 1 deletions
|
|
@ -176,12 +176,15 @@ function resizeImageContents() {
|
|||
}
|
||||
if(parent.nodeName != "TD" && parent.nodeName != "DIV") continue;
|
||||
|
||||
if(/\/modules\//i.test(obj.src)) continue;
|
||||
if(/\/common\/tpl\//i.test(obj.src)) continue;
|
||||
|
||||
var parent_width = xWidth(parent);
|
||||
var obj_width = xWidth(obj);
|
||||
var orig_img = new Image();
|
||||
orig_img.src = obj.src;
|
||||
|
||||
if(parent_width >= obj_width && orig_img.width == obj_width) continue;
|
||||
if(parent_width > obj_width && orig_img.width == obj_width) continue;
|
||||
|
||||
obj.style.cursor = "pointer";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue