mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@45 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e1f8a69118
commit
cf9066af62
4 changed files with 9 additions and 22 deletions
|
|
@ -6,11 +6,17 @@
|
|||
|
||||
var alertMsg = new Array();
|
||||
|
||||
/**
|
||||
* @function filterAlertMessage
|
||||
* @brief ajax로 서버에 요청후 결과를 처리할 callback_function을 지정하지 않았을 시 호출되는 기본 함수
|
||||
function filterAlertMessage(ret_obj) {
|
||||
var error = ret_obj["error"];
|
||||
var message = ret_obj["message"];
|
||||
var redirect_url = ret_obj["redirect_url"];
|
||||
var url = location.href;
|
||||
if(typeof(message)!='undefined'&&message) alert(message);
|
||||
location.href = location.href;
|
||||
if(typeof(redirect_url)!='undefined'&&redirect_url) url = redirect_url;
|
||||
location.href = url;
|
||||
}
|
||||
|
||||
// filtering
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<module default_action="viewIntroduce" manage_action="">
|
||||
<module default_action="dispIntroduce" manage_action="">
|
||||
<action name="dispIntroduce" type="view" grant="" />
|
||||
<action name="dispInstallForm" type="view" grant="" />
|
||||
<action name="procInstall" type="controller" grant="" />
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@
|
|||
<node target="email_address" required="true" minlength="1" maxlength="200" filter="email"/>
|
||||
</form>
|
||||
<parameter>
|
||||
<param name="mid" target="mid" />
|
||||
<param name="act" target="act" />
|
||||
<param name="db_type" target="db_type" />
|
||||
<param name="db_hostname" target="db_hostname" />
|
||||
<param name="db_userid" target="db_userid" />
|
||||
|
|
@ -28,7 +26,7 @@
|
|||
<param name="nick_name" target="nick_name" />
|
||||
<param name="email_address" target="email_address" />
|
||||
</parameter>
|
||||
<response callback_func="installCompleted">
|
||||
<response>
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
</response>
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
/**
|
||||
* @file install.js
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 초기 설치시 사용되는 script file
|
||||
**/
|
||||
|
||||
/**
|
||||
* @function installCompleted
|
||||
* @param ret_obj ajax로 서버 call을 한후 return 받는 변수명
|
||||
* @brief 설치 성공 후 서버에서 보내주는 메세지를 출력한 후 / 로 redirect
|
||||
**/
|
||||
function installCompleted(ret_obj) {
|
||||
var error = ret_obj["error"];
|
||||
var message = ret_obj["message"];
|
||||
alert(message);
|
||||
location.href = "./";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue