toggleDisplay() IE에서 dispaly_type이 'table'일 경우 표시하지 못하는 문제 수정.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4173 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-05-04 05:08:02 +00:00
parent 01cb5a8ebf
commit 0e793fb2d6

View file

@ -38,7 +38,7 @@ String.prototype.setQuery = function(key, val) {
var q_list = new Array();
for(var i in args) {
if( !args.hasOwnProperty(i) ) continue;
if( !args.hasOwnProperty(i) ) continue;
var arg = args[i];
if(!arg.toString().trim()) continue;
@ -176,14 +176,17 @@ function move_url(url, open_wnidow) {
}
/**
* @brief 특정 div(or span...) display옵션 토글
* @brief 특정 Element의 display 옵션 토글
**/
function toggleDisplay(obj, display_type) {
var obj = xGetElementById(obj);
if(!obj) return;
if(typeof(display_type)=="undefined") display_type = "inline";
if(!obj.style.display || obj.style.display == display_type) obj.style.display = 'none';
else obj.style.display = display_type;
if(!obj.style.display || obj.style.display != 'none') {
obj.style.display = 'none';
} else {
if(display_type) obj.style.display = display_type;
else obj.style.display = '';
}
}
/**