mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
첨부파일 저장시 자동 저장 1번만 하도록 수정, document_srl 이외의 key에서도 자동저장 문서 제대로 불러오도록 스킨 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6657 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
39896e0fbc
commit
7a5924a159
3 changed files with 10 additions and 5 deletions
|
|
@ -5779,7 +5779,6 @@ xe.XE_AutoSave = jQuery.Class({
|
|||
if (title || content) {
|
||||
if (confirm(this.form._saved_doc_message.value)) {
|
||||
jQuery(this.form.title).val(title);
|
||||
jQuery(this.form.document_srl).val(doc_srl);
|
||||
this.oApp.setIR(content);
|
||||
if(typeof(editorGetAutoSavedDoc) == 'function') editorGetAutoSavedDoc(this.form);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -200,8 +200,10 @@ function editorGetAutoSavedDoc(form) {
|
|||
var param = new Array();
|
||||
param['mid'] = current_mid;
|
||||
param['editor_sequence'] = form.getAttribute('editor_sequence')
|
||||
setTimeout(function() {
|
||||
exec_xml('editor',"procEditorLoadSavedDocument", param);
|
||||
setTimeout(function() {
|
||||
alert(editorRelKeys[param['editor_sequence']]['primary'].value);
|
||||
var response_tags = new Array("error","message","editor_sequence","title","content","document_srl");
|
||||
exec_xml('editor',"procEditorLoadSavedDocument", param, function(a,b,c) { editorRelKeys[param['editor_sequence']]['primary'].value = a['document_srl']; }, response_tags);
|
||||
if(typeof(reloadFileList) == 'function') reloadFileList(uploaderSettings[param['editor_sequence']]);
|
||||
}, 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ var uploaderSettings = new Array();
|
|||
var loaded_images = new Array();
|
||||
var swfUploadObjs = new Array();
|
||||
var uploadSettingObj = new Array();
|
||||
var uploadAutosaveChecker = false;
|
||||
|
||||
/**
|
||||
* 업로드를 하기 위한 준비 시작
|
||||
|
|
@ -284,8 +285,11 @@ function completeReloadFileList(ret_obj, response_tags, settings) {
|
|||
|
||||
// var swfu = SWFUpload.instances[swfUploadObjs[editor_sequence]].setFileSizeLimit(left_size);
|
||||
|
||||
// 문서 강제 자동저장
|
||||
if(typeof(_editorAutoSave) == 'function') _editorAutoSave(true);
|
||||
// 문서 강제 자동저장 1번만 사용 ( 첨부파일 target_srl로 자동 저장문서를 저장하기 위한 용도일 뿐 )
|
||||
if(typeof(_editorAutoSave) == 'function' && uploadAutosaveChecker == false) {
|
||||
uploadAutosaveChecker = true;
|
||||
_editorAutoSave(true);
|
||||
}
|
||||
|
||||
xAddEventListener(listObj,'click',previewFiles);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue