mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 05:39:58 +09:00
자동 저장 문서 파일 첨부 불러오기 끝
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6546 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d26ad3c592
commit
b6432e5bf4
8 changed files with 19 additions and 7 deletions
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
<!-- 자동저장용 폼 -->
|
||||
<!--@if($enable_autosave)-->
|
||||
<input type="hidden" name="_saved_doc_srl" value="{$saved_doc->document_srl}" />
|
||||
<input type="hidden" name="_saved_doc_title" value="{htmlspecialchars($saved_doc->title)}" />
|
||||
<input type="hidden" name="_saved_doc_content" value="{htmlspecialchars($saved_doc->content)}" />
|
||||
<input type="hidden" name="_saved_doc_message" value="{$lang->msg_load_saved_doc}" />
|
||||
|
|
|
|||
|
|
@ -51,12 +51,15 @@ function editorStart_fck(editor, element, editor_sequence, content_key, editor_h
|
|||
if(typeof(fo_obj._saved_doc_title)!="undefined" ) { ///<< _saved_doc_title field가 없으면 자동저장 하지 않음
|
||||
var saved_title = fo_obj._saved_doc_title.value;
|
||||
var saved_content = fo_obj._saved_doc_content.value;
|
||||
var saved_srl = fo_obj._saved_doc_srl.value;
|
||||
if(saved_title || saved_content) {
|
||||
// 자동저장된 문서 활용여부를 물은 후 사용하지 않는다면 자동저장된 문서 삭제
|
||||
if(confirm(fo_obj._saved_doc_message.value)) {
|
||||
if(typeof(fo_obj.title)!='undefined') fo_obj.title.value = saved_title;
|
||||
setTimeout(function(){
|
||||
editorRelKeys[editor_sequence]['primary'].value = saved_srl;
|
||||
setContent(editor_sequence,saved_content);
|
||||
editorUploadInit(uploadSettingObj, true);
|
||||
}, 100);
|
||||
} else {
|
||||
editorRemoveSavedDoc();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue