mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 08:49:56 +09:00
에디터의 글 임시 저장의 시간을 15초 단위로 바꾸고 에디터 바로 상단에 메세지가 표시되도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1948 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e6033d5b70
commit
3ad2b64fbf
3 changed files with 13 additions and 5 deletions
|
|
@ -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 {}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
<script type="text/javascript">//<![CDATA[
|
||||
var editor_height = '{$editor_height}';
|
||||
var editor_path = "{$editor_path}";
|
||||
var auto_saved_msg = "{$lang->msg_auto_saved}";
|
||||
editorInit("{$upload_target_srl}", {$enable_resizable}, {$editor_height});
|
||||
//]]></script>
|
||||
|
||||
|
|
@ -114,6 +115,8 @@
|
|||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<div class="editor_autosaved_message" id="editor_autosaved_message"></div>
|
||||
|
||||
<div class="editor_iframe_box" id="editor_iframe_area_{$upload_target_srl}"></div>
|
||||
|
||||
<div class="textAreaDragIndicator"><div class="textAreaDragIndicatorBar" id="editor_drag_bar_{$upload_target_srl}"></div></div>
|
||||
|
|
@ -147,8 +150,6 @@
|
|||
<div class="clear"></div>
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<div class="editor_autosaved_message" id="editor_autosaved_message">{$lang->msg_auto_saved} </div>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue