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@861 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4888bd2e9c
commit
9c582a571e
10 changed files with 62 additions and 47 deletions
|
|
@ -83,6 +83,36 @@ function winopen(url, target, attribute) {
|
|||
if(target != "_blank") winopen_list[target] = win;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 팝업으로만 띄우기
|
||||
* common/tpl/popup_layout.html이 요청되는 제로보드 XE내의 팝업일 경우에 사용
|
||||
**/
|
||||
function popopen(url, target) {
|
||||
if(typeof(target)=="undefined") target = "_blank";
|
||||
winopen(url, target, "left=10,top=10,width=10,height=10,scrollbars=no,resizable=no,toolbars=no");
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 메일 보내기용
|
||||
**/
|
||||
function sendMailTo(to) {
|
||||
location.href="mailto:"+to;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief url이동 (open_window 값이 N 가 아니면 새창으로 띄움)
|
||||
**/
|
||||
function move_url(url, open_wnidow) {
|
||||
if(!url) return false;
|
||||
if(typeof(open_wnidow)=='undefined') open_wnidow = 'N';
|
||||
if(open_wnidow=='Y') {
|
||||
winopen(url);
|
||||
} else {
|
||||
location.href=url;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 특정 div(or span...)의 display옵션 토글
|
||||
**/
|
||||
|
|
@ -196,27 +226,6 @@ function svc_folder_close(id) {
|
|||
folder_obj.style.display = "none";
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 메일 보내기용
|
||||
**/
|
||||
function sendMailTo(to) {
|
||||
location.href="mailto:"+to;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief url이동 (open_window 값이 N 가 아니면 새창으로 띄움)
|
||||
**/
|
||||
function move_url(url, open_wnidow) {
|
||||
if(!url) return false;
|
||||
if(typeof(open_wnidow)=='undefined') open_wnidow = 'N';
|
||||
if(open_wnidow=='Y') {
|
||||
winopen(url);
|
||||
} else {
|
||||
location.href=url;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 팝업의 경우 내용에 맞춰 현 윈도우의 크기를 조절해줌
|
||||
* 팝업의 내용에 맞게 크기를 늘리는 것은... 쉽게 되지는 않음.. ㅡ.ㅜ
|
||||
|
|
|
|||
|
|
@ -19,8 +19,6 @@ function exec_xml(module, act, params, callback_func, response_tags, callback_fu
|
|||
|
||||
if(typeof(response_tags)=="undefined" || response_tags.length<1) response_tags = new Array('error','message');
|
||||
|
||||
response_tags[response_tags.length] = "redirect_url";
|
||||
|
||||
if(show_waiting_message) {
|
||||
var waiting_obj = xGetElementById("waitingforserverresponse");
|
||||
waiting_obj.style.visibility = "visible";
|
||||
|
|
@ -126,15 +124,18 @@ function xml_handlerGetResponseXML() {
|
|||
|
||||
function xml_handlerToZMsgObject(xmlDoc, tags) {
|
||||
if(!xmlDoc) return null;
|
||||
if(!tags) {
|
||||
tags = new Array("error","message");
|
||||
}
|
||||
if(!tags) tags = new Array("error","message");
|
||||
tags[tags.length] = "redirect_url";
|
||||
tags[tags.length] = "act";
|
||||
|
||||
var obj_ret = new Array();
|
||||
for(var i=0; i<tags.length; i++) {
|
||||
var key = tags[i];
|
||||
if(obj_ret[key]) continue;
|
||||
try {
|
||||
obj_ret[tags[i]] = xmlDoc.getElementsByTagName(tags[i])[0].firstChild.nodeValue;
|
||||
obj_ret[key] = xmlDoc.getElementsByTagName(tags[i])[0].firstChild.nodeValue;
|
||||
} catch(e) {
|
||||
obj_ret[tags[i]] = "";
|
||||
obj_ret[key] = "";
|
||||
}
|
||||
}
|
||||
return obj_ret;
|
||||
|
|
|
|||
|
|
@ -17,11 +17,17 @@ var target_type_list = new Array();
|
|||
function filterAlertMessage(ret_obj) {
|
||||
var error = ret_obj["error"];
|
||||
var message = ret_obj["message"];
|
||||
var act = ret_obj["act"];
|
||||
var redirect_url = ret_obj["redirect_url"];
|
||||
var url = location.href;
|
||||
if(url.substr(-1)=='#') url = url.substr(0,url.length-1);
|
||||
if(typeof(message)!='undefined'&&message&&message!='success') alert(message);
|
||||
if(typeof(redirect_url)!='undefined'&&redirect_url) url = redirect_url;
|
||||
|
||||
if(url.substr(-1)=="#") url = url.substr(0,url.length-1);
|
||||
|
||||
if(typeof(message)!="undefined"&&message&&message!="success") alert(message);
|
||||
|
||||
if(typeof(act)!="undefined" && act) url = location.href.setQuery("act", act);
|
||||
else if(typeof(redirect_url)!="undefined" && redirect_url) url = redirect_url;
|
||||
|
||||
location.href = url;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue