에디터의 글 임시 저장의 시간을 15초 단위로 바꾸고 에디터 바로 상단에 메세지가 표시되도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/trunk@1948 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-07-16 08:53:29 +00:00
parent e6033d5b70
commit 3ad2b64fbf
3 changed files with 13 additions and 5 deletions

View file

@ -136,7 +136,7 @@ function editorEnableAutoSave(fo_obj, upload_target_srl) {
var title = fo_obj.title.value;
var content = fo_obj.content.value;
_autoSaveObj = {"fo_obj":fo_obj, "upload_target_srl":upload_target_srl, "title":title, "content":content};
setTimeout(_editorAutoSave, 15000);
setTimeout(_editorAutoSave, 5000);
}
function _editorAutoSave() {
@ -160,6 +160,13 @@ function _editorAutoSave() {
xGetElementById("editor_autosaved_message").style.display = "block";
setTimeout(function() {xGetElementById("editor_autosaved_message").style.display = "none";}, 1000);
*/
var obj = xGetElementById("editor_autosaved_message");
var oDate = new Date();
html = oDate.getHours()+':'+oDate.getMinutes()+' '+auto_saved_msg;
xInnerHtml(obj, html);
obj.style.display = "block";
show_waiting_message = false;
exec_xml("editor","procEditorSaveDoc", params, _editorAutoSaved);
show_waiting_message = true;
@ -171,7 +178,7 @@ function _editorAutoSave() {
}
function _editorAutoSaved(ret_obj) {
setTimeout(_editorAutoSave, 60000);
setTimeout(_editorAutoSave, 15000);
return null;
}