mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 18:29:55 +09:00
자동으로 작아진 이미지를 찾아내는 함수에서 zbxe기본 디렉토리의 파일들은 검사 하지 않도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2182 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f553d3fccf
commit
c0e22b64ce
1 changed files with 5 additions and 2 deletions
|
|
@ -179,6 +179,9 @@ function resizeImageContents() {
|
|||
if(parent.nodeName != "TD" && parent.nodeName != "DIV") continue;
|
||||
|
||||
if(/\/modules\//i.test(obj.src)) continue;
|
||||
if(/\/layouts\//i.test(obj.src)) continue;
|
||||
if(/\/widgets\//i.test(obj.src)) continue;
|
||||
if(/\/classes\//i.test(obj.src)) continue;
|
||||
if(/\/common\/tpl\//i.test(obj.src)) continue;
|
||||
if(/\/member_extra_info\//i.test(obj.src)) continue;
|
||||
|
||||
|
|
@ -187,8 +190,8 @@ function resizeImageContents() {
|
|||
var orig_img = new Image();
|
||||
orig_img.src = obj.src;
|
||||
|
||||
if(parent_width<0 || obj_width < 0) continue;
|
||||
if(parent_width > obj_width && orig_img.width <= obj_width) continue;
|
||||
if(parent_width<1 || obj_width <1) 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