#173 방명록에서 페이지별 또는 댓글의 댓글 부분등에서 오동작을 하는 버그 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2605 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-09-18 07:04:30 +00:00
parent 5f10f311d1
commit fc203fd439
2 changed files with 5 additions and 12 deletions

View file

@ -240,7 +240,7 @@
if(!$source_comment) return $this->dispGuestbookMessage('msg_invalid_request');
// 필요한 정보들 세팅
Context::set('document_srl',$document_srl);
Context::set('document_srl',$source_comment->document_srl);
Context::set('parent_srl',$parent_srl);
Context::set('comment_srl',NULL);
Context::set('source_comment',$source_comment);

View file

@ -9,11 +9,10 @@ function completeDocumentInserted(ret_obj) {
var error = ret_obj['error'];
var message = ret_obj['message'];
var mid = ret_obj['mid'];
var document_srl = ret_obj['document_srl'];
alert(message);
var url = current_url.setQuery('mid',mid).setQuery('document_srl',document_srl).setQuery('act','');
var url = current_url.setQuery('mid',mid).setQuery('act','').setQuery('page','').setQuery('comment_srl','');
location.href = url;
}
@ -24,9 +23,7 @@ function completeDeleteDocument(ret_obj) {
var mid = ret_obj['mid'];
var page = ret_obj['page'];
var url = "./?mid="+mid;
if(page) url += "&page="+page;
var url = current_url.setQuery('mid',mid).setQuery('act','').setQuery('comment_srl','');
alert(message);
location.href = url;
@ -48,9 +45,7 @@ function completeInsertComment(ret_obj) {
var document_srl = ret_obj['document_srl'];
var comment_srl = ret_obj['comment_srl'];
var url = "./?mid="+mid+"&document_srl="+document_srl;
//if(comment_srl) url += "#comment_"+comment_srl;
var url = current_url.setQuery('mid',mid).setQuery('act','').setQuery('comment_srl','');
alert(message);
location.href = url;
@ -64,9 +59,7 @@ function completeDeleteComment(ret_obj) {
var document_srl = ret_obj['document_srl'];
var page = ret_obj['page'];
var url = "./?mid="+mid+'&document_srl='+document_srl;
if(page) url += "&page="+page;
var url = current_url.setQuery('mid',mid).setQuery('act','').setQuery('comment_srl','');
alert(message);
location.href = url;