mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-05 03:22:10 +09:00
#489 방명록 스킨에서 '임시저장/불러오기'기능이 작동하도록 고침
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4345 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c31b149289
commit
47580801dc
2 changed files with 9 additions and 1 deletions
|
|
@ -536,6 +536,7 @@ function doDocumentSave(obj) {
|
|||
var oFilter = new XmlJsFilter(obj.form, "member", "procMemberSaveDocument", completeDocumentSave);
|
||||
oFilter.addResponseItem("error");
|
||||
oFilter.addResponseItem("message");
|
||||
oFilter.addResponseItem("document_srl");
|
||||
oFilter.proc();
|
||||
|
||||
editorRelKeys[editor_sequence]['content'].value = prev_content;
|
||||
|
|
@ -543,6 +544,7 @@ function doDocumentSave(obj) {
|
|||
}
|
||||
|
||||
function completeDocumentSave(ret_obj) {
|
||||
xGetElementsByAttribute('input', 'name', 'document_srl')[0].value = ret_obj['document_srl'];
|
||||
alert(ret_obj['message']);
|
||||
}
|
||||
|
||||
|
|
@ -562,7 +564,7 @@ function doDocumentSelect(document_srl) {
|
|||
}
|
||||
|
||||
// 게시글을 가져와서 등록하기
|
||||
opener.location.href = opener.current_url.setQuery('document_srl', document_srl);
|
||||
opener.location.href = opener.current_url.setQuery('document_srl', document_srl).setQuery('act', 'dispBoardWrite');
|
||||
window.close();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -221,6 +221,11 @@
|
|||
// 글의 대상 모듈을 회원 정보로 변경
|
||||
$obj->module_srl = $logged_info->member_srl;
|
||||
|
||||
// 제목을 사용하지 않는 방명록 등에서 내용 앞 부분을 제목 가져오기
|
||||
if(!$obj->title) {
|
||||
$obj->title = cut_str(strip_tags($obj->content), 20, '...');
|
||||
}
|
||||
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oDocumentController = &getController('document');
|
||||
|
||||
|
|
@ -248,6 +253,7 @@
|
|||
}
|
||||
|
||||
$this->setMessage('success_saved');
|
||||
$this->add('document_srl', $obj->document_srl);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue