ToDo List HTML.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4778 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2008-11-06 05:01:30 +00:00
parent 9d5623a3be
commit 02a6c41551

View file

@ -21,7 +21,7 @@ function planet_showTodoList(o){
}
function planet_reload_todo(){
$('commentList').innerHTML = '<div class="commentHeader"><h3 class="exTitle">TODO</h3></div>\n<div id="todoList" class="commentBody taskManager"></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 taskManager"></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">TODO ¾²±â</button></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"><button type="button" id="document_srl:'+it[i]['document_srl']+'" onclick="planet_todo_setDone(this)">&radic; 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");
}
@ -103,7 +103,7 @@ function result_planet_getTodo(ret_obj,response_tags, params, fo_obj) {
}
if(pageNavigation.total_page != pageNavigation.last_page) str += '<a class="next" href="#planet_tab" onclick="planet_getDone('+(pageNavigation.last_page+1)+');">next</a>';
$('doneList_page').innerHTML = str;
$('todoList_page').innerHTML = str;
}
window.location.href="#planet_tab";
}else{
@ -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"><button type="button" id="document_srl:'+it[i]['document_srl']+'" onclick="planet_todo_setDone(this)">REDO</button></span>');
o.push('<span class="button small"><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");
}