회원가입창을 새창으로 띄웠을경우(get query에 popup=1 명시) 회원가입후 창닫고 부모창을 리로드하도록 코드 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4607 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-10-08 09:11:51 +00:00
parent 850c1d6b25
commit 32b0cab1d2
2 changed files with 12 additions and 3 deletions

View file

@ -6,8 +6,13 @@ function completeInsert(ret_obj, response_tags, args, fo_obj) {
alert(message);
if(redirect_url) location.href = redirect_url;
else location.href = current_url.setQuery('act','');
if(current_url.getQuery('popup')==1) {
if(typeof(opener)!='undefined') opener.location.reload();
window.close();
} else {
if(redirect_url) location.href = redirect_url;
else location.href = current_url.setQuery('act','');
}
}
/* 정보 수정 */

View file

@ -212,9 +212,13 @@
</table>
<!--@end-->
<div class="tRight">
<div class="tCenter">
<span class="button"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
<!--@if($popup)-->
<a href="#" class="button" onclick="window.close();return false;"><span>{$lang->cmd_close}</span></a>
<!--@else-->
<a href="{getUrl('act','','member_srl','')}" class="button"><span>{$lang->cmd_cancel}</span></a>
<!--@end-->
</div>
</form>