mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
toggleDisplay() 두번째 인자를 제대로 처리하지 못하는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4170 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
09095c5069
commit
eafaaadcfa
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue