1. jQuery뿐 아니라 여러 javascript 의 플러그인 사용을 위해 template handler에 <!--%load_js_plugin("이름")--> 기능 추가 ( ./common/js/plugins/이름/plugin.load 파일에 기재된 js/css, 또는 lang을 import 함)

2. 1번에 의해 ui.datepicker, ui.tree를 플러그인으로 빼서 적용
3. jquery의 버전별 이름이 생길 문제를 대비하여 jquery.js로 파일 이름 변경
4. js/css파일들은 크기보다 그 개수가 적어야 함으로 jquery-1.2.6.fix.js를 common.js 파일로 통합


git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5083 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-12-15 09:29:55 +00:00
parent d2d9b2c3a2
commit 5d549bffd7
57 changed files with 149 additions and 366 deletions

View file

@ -239,6 +239,37 @@ jQuery(function($) {
}
});
/*
* jQuery 1.2.6
* Opera 브라우저에서 $(window).height() / width() 값을 잘못 가져오는 문제 수정
* jQuery 1.3에서 수정되었음
* @link http://dev.jquery.com/changeset/5938
*/
if(jQuery.fn.jquery == '1.2.6') {
jQuery.each([ "Height", "Width" ], function(i, name){
var type = name.toLowerCase();
jQuery.fn[ type ] = function( size ) {
return this[0] == window ?
// Opera 브라우저에서 $(window).height() / width() 값을 잘못 가져오는 문제 수정
jQuery.browser.opera && document.body.parentNode[ "client" + name ] ||
jQuery.browser.safari && window[ "inner" + name ] ||
document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] || document.body[ "client" + name ] :
this[0] == document ?
Math.max(
Math.max(document.body["scroll" + name], document.documentElement["scroll" + name]),
Math.max(document.body["offset" + name], document.documentElement["offset" + name])
) :
size == undefined ?
(this.length ? jQuery.css( this[0], type ) : null) :
this.css( type, size.constructor == String ? size : size + "px" );
};
});
}
/**
@ -888,4 +919,4 @@ function replaceOuterHTML(obj, html) {
function getOuterHTML(obj) {
return jQuery(obj).html().trim();
}
}