js filter함수에서 rdirect url이 없을 경우 현재 url을 reload하는데 이때 #앵커 가 url에 있을 경우 reload안되는 것을 방지 하기 위해 코드 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3068 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-11-26 03:35:04 +00:00
parent 470e2add50
commit bf6f594e9d

View file

@ -23,13 +23,13 @@ function filterAlertMessage(ret_obj) {
var redirect_url = ret_obj["redirect_url"];
var url = location.href;
if(url.substr(url.length-1,1)=="#") url = url.substr(0,url.length-1);
if(typeof(message)!="undefined"&&message&&message!="success") alert(message);
if(typeof(act)!="undefined" && act) url = current_url.setQuery("act", act);
else if(typeof(redirect_url)!="undefined" && redirect_url) url = redirect_url;
if(url == location.href) url = url.replace(/#(.+)$/,'');
location.href = url;
}