mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
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:
parent
470e2add50
commit
bf6f594e9d
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue