git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4781 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
ngleader 2008-11-06 05:24:15 +00:00
parent ac71c1f9c8
commit ec9f2e5062
2 changed files with 11 additions and 10 deletions

View file

@ -21,7 +21,7 @@ function planet_showTodoList(o){
}
function planet_reload_todo(){
$('commentList').innerHTML = '<div class="commentHeader"><h3 class="exTitle">TODO</h3><span class="button strong black todoWrite"><button type="button">TODO ¾²±â</button></span></div>\n<div id="todoList" class="commentBody todoManager"></div>\n<div id="todoList_page" class="pagination a1"></div>\n<div class="commentHeader"><h3 class="exTitle">DONE</h3></div>\n<div id="doneList" class="commentBody todoManager"></div>\n<div id="doneList_page" class="pagination a1"></div>\n<span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span>\n';
$('commentList').innerHTML = '<div class="commentHeader"><h3 class="exTitle">TODO</h3><span class="button strong black todoWrite"><button type="button" onclick="showWritePostTodo()">TODO 쓰기</button></span></div>\n<div id="todoList" class="commentBody todoManager"></div>\n<div id="todoList_page" class="pagination a1"></div>\n<div class="commentHeader"><h3 class="exTitle">DONE</h3></div>\n<div id="doneList" class="commentBody todoManager"></div>\n<div id="doneList_page" class="pagination a1"></div>\n<span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span>\n';
planet_getTodo();
planet_getDone();
}
@ -72,11 +72,11 @@ function result_planet_getTodo(ret_obj,response_tags, params, fo_obj) {
tag = tag.$value().join(',');
o.push('<input type="hidden" id="tag:'+it[i]['document_srl']+'" value="'+tag+'" /><li>');
o.push(it[i]['content']);
o.push('<span class="button small"><img src="/common/tpl/images/iconCheckGreen.gif" alt="" class="icon" /><button type="button" id="document_srl:'+it[i]['document_srl']+'" onclick="planet_todo_setDone(this)">DONE</button></span>');
o.push('<span class="time">');
o.push(it[i]['regdate']);
o.push('</span>');
o.push(it[i]['content']);
o.push('<span class="button small"><img src="./common/tpl/images/iconCheckGreen.gif" alt="" class="icon" /><button type="button" id="document_srl:'+it[i]['document_srl']+'" onclick="planet_todo_setDone(this)">DONE</button></span>');
o.push('<span class="time">');
o.push(it[i]['regdate']);
o.push('</span>');
o.push("</li>\n");
}
@ -144,9 +144,9 @@ function result_planet_getDone(ret_obj,response_tags, params, fo_obj) {
tag = tag.$value().join(',');
o.push('<input type="hidden" id="tag:'+it[i]['document_srl']+'" value="'+tag+'" /><li>');
o.push(it[i]['content']);
o.push('<span class="button small"><img src="/common/tpl/images/iconCheckGreen.gif" alt="" class="icon" /><button type="button" id="document_srl:'+it[i]['document_srl']+'" onclick="planet_todo_setDone(this)">REDO</button></span>');
o.push('<span class="button small"><img src="/common/tpl/images/iconX.gif" alt="" class="icon" /><button type="button" onclick="planet_todo_setDel('+it[i]['document_srl']+')">Delete</button></span>');
o.push(it[i]['content']);
o.push('<span class="button small"><img src="./common/tpl/images/iconCheckGreen.gif" alt="" class="icon" /><button type="button" id="document_srl:'+it[i]['document_srl']+'" onclick="planet_todo_setDone(this)">REDO</button></span>');
o.push('<span class="button small"><img src="./common/tpl/images/iconX.gif" alt="" class="icon" /><button type="button" onclick="planet_todo_setDel('+it[i]['document_srl']+')">Delete</button></span>');
o.push("</li>\n");
}
@ -216,5 +216,6 @@ function showWritePostTodo(tag){
$Element($('writePostForm').about_tag).hide();
$Element($('writePostForm').content_tag).show();
$('writePostForm').content_tag.value = tag;
window.document.location.href="#writePost";
showWritePost();
}