_editorAutoSave 함수 수정 : jQuery 사용하도록 코드 수정, 자동 저장 메시지 2초후 사라지도록 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6021 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2009-04-03 09:29:55 +00:00
parent 4c39cdfcc6
commit 4063222866

View file

@ -65,12 +65,12 @@ function _editorAutoSave() {
editorAutoSaveObj.title = title;
editorAutoSaveObj.content = content;
var obj = xGetElementById("editor_autosaved_message_"+editor_sequence);
obj.style.display = 'block';
var oDate = new Date();
html = oDate.getHours()+':'+oDate.getMinutes()+' '+auto_saved_msg;
xInnerHtml(obj, html);
obj.style.display = "block";
var obj = jQuery("#editor_autosaved_message_"+editor_sequence);
var oDate = new Date();
// 메시지 만들어서 보여줌
obj.text(oDate.getHours()+':'+oDate.getMinutes()+' '+auto_saved_msg).show(300);
setTimeout(function(){obj.hide(300)}, 2000);
// 현재 자동저장중임을 설정
editorAutoSaveObj.locked = true;