파일 업로드 영역이 정의되어 있을때만 파일 업로드 재정의.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6580 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-06-17 11:20:25 +00:00
parent f930b24a71
commit 93d7697b88
5 changed files with 6 additions and 6 deletions

View file

@ -59,7 +59,7 @@ function editorStart_fck(editor, element, editor_sequence, content_key, editor_h
setTimeout(function(){ setTimeout(function(){
editorRelKeys[editor_sequence]['primary'].value = saved_srl; editorRelKeys[editor_sequence]['primary'].value = saved_srl;
setContent(editor_sequence,saved_content); setContent(editor_sequence,saved_content);
editorUploadInit(uploadSettingObj, true); if(typeof(editorUploadInit) == 'function') editorUploadInit(uploadSettingObj, true);
}, 100); }, 100);
} else { } else {
editorRemoveSavedDoc(); editorRemoveSavedDoc();

View file

@ -5781,7 +5781,7 @@ xe.XE_AutoSave = jQuery.Class({
jQuery(this.form.title).val(title); jQuery(this.form.title).val(title);
jQuery(this.form.document_srl).val(doc_srl); jQuery(this.form.document_srl).val(doc_srl);
this.oApp.setIR(content); this.oApp.setIR(content);
editorUploadInit(uploadSettingObj, true); if(typeof(editorUploadInit) == 'function') editorUploadInit(uploadSettingObj, true);
} else { } else {
editorRemoveSavedDoc(); editorRemoveSavedDoc();
} }

View file

@ -54,7 +54,7 @@ function editorStart_xq(editor, element, editor_sequence, content_key, editor_he
if(typeof(fo_obj.title)!='undefined') fo_obj.title.value = saved_title; if(typeof(fo_obj.title)!='undefined') fo_obj.title.value = saved_title;
editorRelKeys[editor_sequence]['content'].value = saved_content; editorRelKeys[editor_sequence]['content'].value = saved_content;
editorRelKeys[editor_sequence]['primary'].value = saved_srl; editorRelKeys[editor_sequence]['primary'].value = saved_srl;
editorUploadInit(uploadSettingObj, true); if(typeof(editorUploadInit) == 'function') editorUploadInit(uploadSettingObj, true);
} else { } else {
editorRemoveSavedDoc(); editorRemoveSavedDoc();
} }

View file

@ -109,7 +109,7 @@ function editorStart(editor_sequence, primary_key, content_key, editor_height, f
param['primary_key'] = primary_key; param['primary_key'] = primary_key;
var response_tags = new Array("error","message","editor_sequence","key","title","content","document_srl"); var response_tags = new Array("error","message","editor_sequence","key","title","content","document_srl");
exec_xml('editor',"procEditorLoadSavedDocument", param, getAutoSavedSrl, response_tags); exec_xml('editor',"procEditorLoadSavedDocument", param, getAutoSavedSrl, response_tags);
editorUploadInit(uploadSettingObj, true); if(typeof(editorUploadInit) == 'function') editorUploadInit(uploadSettingObj, true);
} else { } else {
editorRemoveSavedDoc(); editorRemoveSavedDoc();

View file

@ -282,10 +282,10 @@ 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); if(typeof(_editorAutoSave) == 'function') _editorAutoSave(true);
xAddEventListener(listObj,'click',previewFiles); xAddEventListener(listObj,'click',previewFiles);
} }