내용중 큰 이미지가 있을 경우 원본을 보여주게 하는 기능중에 zbxe기본 파일들에 대해서는 작동하지 않도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/trunk@1993 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-07-24 14:48:40 +00:00
parent c4d1ed1c2e
commit 46e3cc9ff0

View file

@ -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";