git-svn-id: http://xe-core.googlecode.com/svn/trunk@45 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-02-15 06:18:57 +00:00
parent e1f8a69118
commit cf9066af62
4 changed files with 9 additions and 22 deletions

View file

@ -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