mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@988 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
aeb1d32bf2
commit
7b5e44ea20
14 changed files with 368 additions and 25 deletions
|
|
@ -9,13 +9,14 @@
|
|||
**/
|
||||
String.prototype.getQuery = function(key) {
|
||||
var idx = this.indexOf('?');
|
||||
if(idx == -1) return;
|
||||
if(idx == -1) return null;
|
||||
var query_string = this.substr(idx+1, this.length);
|
||||
var args = {}
|
||||
query_string.replace(/([^=]+)=([^&]*)(&|$)/g, function() { args[arguments[1]] = arguments[2]; });
|
||||
|
||||
var q = args[key];
|
||||
if(typeof(q)=="undefined") q = "";
|
||||
|
||||
return q;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ function drawTreeMenu(oXml, callback_func, resopnse_tags, null_func, param) {
|
|||
if(manual_select_node_srl) manualSelectNode(menu_id, manual_select_node_srl);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
// 페이지 랜더링 중에 메뉴의 html이 완성되었을때 window.onload event 후에 그리기 재시도를 하게 될 함수
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ else if(navigator.vendor!='KDE' && document.all && xUA.indexOf('msie')!=-1){
|
|||
xIE6=xUA.indexOf('msie 6')!=-1;
|
||||
}
|
||||
else if(document.layers){xNN4=true;}
|
||||
xMac=xUA.indexOf('mac')!=-1;
|
||||
var xMac=xUA.indexOf('mac')!=-1;
|
||||
|
||||
// (element, event(without 'on'), event listener(function name)[, caption])
|
||||
function xAddEventListener(e,eT,eL,cap)
|
||||
|
|
@ -313,7 +313,7 @@ function xHeight(e,h)
|
|||
}
|
||||
}
|
||||
h-=(pt+pb+bt+bb);
|
||||
if(isNaN(h)||h<0) return;
|
||||
if(isNaN(h)||h<0) return null;
|
||||
else e.style.height=h+'px';
|
||||
}
|
||||
h=e.offsetHeight;
|
||||
|
|
@ -325,9 +325,10 @@ function xHeight(e,h)
|
|||
return h;
|
||||
}
|
||||
|
||||
function xHex(n, digits, prefix)
|
||||
function xHex(sn, digits, prefix)
|
||||
{
|
||||
var p = '', n = Math.ceil(n);
|
||||
var p = '';
|
||||
var n = Math.ceil(sn);
|
||||
if (prefix) p = prefix;
|
||||
n = n.toString(16);
|
||||
for (var i=0; i < digits - n.length; ++i) {
|
||||
|
|
@ -449,18 +450,6 @@ function xParent(e, bNode)
|
|||
return p;
|
||||
}
|
||||
|
||||
function xParentChain(e,delim,bNode)
|
||||
{
|
||||
if (!(e=xGetElementById(e))) return;
|
||||
var lim=100, s = "", d = delim || "\n";
|
||||
while(e) {
|
||||
s += xName(e) + ', ofsL:'+e.offsetLeft + ', ofsT:'+e.offsetTop + d;
|
||||
e = xParent(e,bNode);
|
||||
if (!lim--) break;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
function xPreventDefault(e)
|
||||
{
|
||||
if (e && e.preventDefault) e.preventDefault()
|
||||
|
|
@ -602,7 +591,7 @@ function xWidth(e,w)
|
|||
}
|
||||
}
|
||||
w-=(pl+pr+bl+br);
|
||||
if(isNaN(w)||w<0) return;
|
||||
if(isNaN(w)||w<0) return null;
|
||||
else e.style.width=w+'px';
|
||||
}
|
||||
w=e.offsetWidth;
|
||||
|
|
|
|||
|
|
@ -38,10 +38,12 @@ function xml_response_filter(oXml, callback_func, response_tags, callback_func_a
|
|||
var ret_obj = oXml.toZMsgObject(xmlDoc, response_tags);
|
||||
if(ret_obj["error"]!=0) {
|
||||
alert(ret_obj["message"]);
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
callback_func(ret_obj, response_tags, callback_func_arg, fo_obj);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
// xml handler
|
||||
|
|
|
|||
|
|
@ -188,6 +188,8 @@ function XmlJsFilterExecuteFilter(filter, value) {
|
|||
return !isNaN(value);
|
||||
break;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function XmlJsFilterAlertMsg(target, msg_code, minlength, maxlength) {
|
||||
|
|
@ -281,6 +283,8 @@ function XmlJsFilterProc(confirm_msg) {
|
|||
return true;
|
||||
}
|
||||
exec_xml(this.module, this.act, params, this.user_func, response, params, this.fo_obj);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
// form proc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue