From 3ad2b64fbfae45c19cb4344234c1dd02458858a1 Mon Sep 17 00:00:00 2001 From: zero Date: Mon, 16 Jul 2007 08:53:29 +0000 Subject: [PATCH] =?UTF-8?q?=EC=97=90=EB=94=94=ED=84=B0=EC=9D=98=20?= =?UTF-8?q?=EA=B8=80=20=EC=9E=84=EC=8B=9C=20=EC=A0=80=EC=9E=A5=EC=9D=98=20?= =?UTF-8?q?=EC=8B=9C=EA=B0=84=EC=9D=84=2015=EC=B4=88=20=EB=8B=A8=EC=9C=84?= =?UTF-8?q?=EB=A1=9C=20=EB=B0=94=EA=BE=B8=EA=B3=A0=20=EC=97=90=EB=94=94?= =?UTF-8?q?=ED=84=B0=20=EB=B0=94=EB=A1=9C=20=EC=83=81=EB=8B=A8=EC=97=90=20?= =?UTF-8?q?=EB=A9=94=EC=84=B8=EC=A7=80=EA=B0=80=20=ED=91=9C=EC=8B=9C?= =?UTF-8?q?=EB=90=98=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/trunk@1948 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/tpl/css/editor.css | 2 +- modules/editor/tpl/editor.html | 5 +++-- modules/editor/tpl/js/editor.js | 11 +++++++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/modules/editor/tpl/css/editor.css b/modules/editor/tpl/css/editor.css index a0be9c97b..4d6a24664 100644 --- a/modules/editor/tpl/css/editor.css +++ b/modules/editor/tpl/css/editor.css @@ -25,7 +25,7 @@ .xeEditor .textAreaDragIndicator { text-align:center; background:url(../images/lineTextAreaDrag.gif) repeat-x left center; margin-bottom:1em; margin-top:5px; } .xeEditor .textAreaDragIndicatorBar { background:url(../images/buttonTextAreaDrag.gif) no-repeat center; margin-bottom:1em;cursor:move;height:14px;} -div.editor_autosaved_message { font-size:9pt; font-weight:bold; color:#888888; display:none; position:absolute; top:10px; right:10px; } +div.editor_autosaved_message { color:#888888; display:none; padding:3px;} .xeEditor .inputTypeTextArea { background:#fbfbfb; padding:1em; width:94%;} .xeEditor #textAreaDrag {} diff --git a/modules/editor/tpl/editor.html b/modules/editor/tpl/editor.html index bd57188f6..36ec8c653 100644 --- a/modules/editor/tpl/editor.html +++ b/modules/editor/tpl/editor.html @@ -5,6 +5,7 @@ @@ -114,6 +115,8 @@ +
+
@@ -147,8 +150,6 @@
- -
{$lang->msg_auto_saved}  
diff --git a/modules/editor/tpl/js/editor.js b/modules/editor/tpl/js/editor.js index 4c37b96cd..70b265508 100755 --- a/modules/editor/tpl/js/editor.js +++ b/modules/editor/tpl/js/editor.js @@ -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; }