mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
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:
parent
01cb5a8ebf
commit
0e793fb2d6
1 changed files with 8 additions and 5 deletions
|
|
@ -38,7 +38,7 @@ String.prototype.setQuery = function(key, val) {
|
||||||
|
|
||||||
var q_list = new Array();
|
var q_list = new Array();
|
||||||
for(var i in args) {
|
for(var i in args) {
|
||||||
if( !args.hasOwnProperty(i) ) continue;
|
if( !args.hasOwnProperty(i) ) continue;
|
||||||
var arg = args[i];
|
var arg = args[i];
|
||||||
if(!arg.toString().trim()) continue;
|
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) {
|
function toggleDisplay(obj, display_type) {
|
||||||
var obj = xGetElementById(obj);
|
var obj = xGetElementById(obj);
|
||||||
if(!obj) return;
|
if(!obj) return;
|
||||||
if(typeof(display_type)=="undefined") display_type = "inline";
|
if(!obj.style.display || obj.style.display != 'none') {
|
||||||
if(!obj.style.display || obj.style.display == display_type) obj.style.display = 'none';
|
obj.style.display = 'none';
|
||||||
else obj.style.display = display_type;
|
} else {
|
||||||
|
if(display_type) obj.style.display = display_type;
|
||||||
|
else obj.style.display = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue