mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +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
|
|
@ -97,12 +97,15 @@ function editorStart(editor_sequence, primary_key, content_key, editor_height, f
|
|||
|
||||
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;
|
||||
editorRelKeys[editor_sequence]['content'].value = saved_content;
|
||||
editorRelKeys[editor_sequence]['primary'].value = saved_srl;
|
||||
editorUploadInit(uploadSettingObj, true);
|
||||
} else {
|
||||
editorRemoveSavedDoc();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,8 +81,8 @@ function _editorAutoSave(exe) {
|
|||
show_waiting_message = true;
|
||||
}
|
||||
|
||||
// 50초마다 동기화를 시킴
|
||||
setTimeout(_editorAutoSave, 50000);
|
||||
// 50초마다 동기화를 시킴 강제 실행은 제외
|
||||
if(!exe) setTimeout(_editorAutoSave, 50000);
|
||||
}
|
||||
|
||||
// 자동저장된 모든 메세지를 삭제하는 루틴
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ var uploadedFiles = new Array();
|
|||
var uploaderSettings = new Array();
|
||||
var loaded_images = new Array();
|
||||
var swfUploadObjs = new Array();
|
||||
var uploadSettingObj = new Object();
|
||||
|
||||
/**
|
||||
* 업로드를 하기 위한 준비 시작
|
||||
|
|
@ -21,6 +22,7 @@ function editorUploadInit(obj, exe) {
|
|||
if(typeof(obj["allowedFileTypesDescription"])=="undefined") obj["allowedFileTypesDescription"]= "All Files";
|
||||
if(typeof(obj["replaceButtonID"])=="undefined") obj["replaceButtonID"] = "swfUploadButton"+obj["editorSequence"];
|
||||
if(typeof(obj["insertedFiles"])=="undefined") obj["insertedFiles"] = 0;
|
||||
uploadSettingObj = obj;
|
||||
xAddEventListener(window,"load",function() { XEUploaderStart(obj) });
|
||||
if(exe) XEUploaderStart(obj);
|
||||
}
|
||||
|
|
@ -280,7 +282,7 @@ function completeReloadFileList(ret_obj, response_tags, settings) {
|
|||
}
|
||||
}
|
||||
|
||||
var swfu = SWFUpload.instances[swfUploadObjs[editor_sequence]].setFileSizeLimit(left_size);
|
||||
// var swfu = SWFUpload.instances[swfUploadObjs[editor_sequence]].setFileSizeLimit(left_size);
|
||||
|
||||
// 문서 강제 자동저장
|
||||
_editorAutoSave(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue