toggleDisplay() 두번째 인자를 제대로 처리하지 못하는 문제 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4170 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-05-03 12:56:53 +00:00
parent 09095c5069
commit eafaaadcfa

View file

@ -178,12 +178,12 @@ function move_url(url, open_wnidow) {
/**
* @brief 특정 div(or span...) display옵션 토글
**/
function toggleDisplay(obj, opt) {
obj = xGetElementById(obj);
function toggleDisplay(obj, display_type) {
var obj = xGetElementById(obj);
if(!obj) return;
if(typeof(opt)=="undefined") opt = "inline";
if(!obj.style.display || obj.style.display == "block") obj.style.display = 'none';
else obj.style.display = opt;
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;
}
/**