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

This commit is contained in:
ngleader 2008-11-04 07:51:07 +00:00
parent ccd2763fca
commit 654156df5e

View file

@ -1,11 +1,15 @@
function planetTab(){
if($('planet_tab')) $('planet_tab').innerHTML += '<ul id="planetex_Tab" class="exTab"><li><a id="aa" href="#" onclick="planet_showTodoList(this); return false;">ToDo<sup>-</sup></a></li>';
}
xAddEventListener(window,'load',planetTab);
function planetTabOff(){
$Element('planetex_Tab').leave();
}
function planet_showTodoList(o){
$ElementList('#planetex_Tab li').removeClass('active');
$Element(o).parent().addClass('active');
@ -151,6 +155,8 @@ function result_planet_getDone(ret_obj,response_tags, params, fo_obj) {
}
function planet_todo_setDone(o){
var document_srl = o.id.replace(/.*:/,'');
var tag = o.value;
@ -174,31 +180,4 @@ function planet_todo_setDel(document_srl){
exec_xml('planet','procPlanetContentTagModify',params,planet_reload_todo);
return false;
}
function xeAjax(param,func){
var url = "./";
var myAjax = $Ajax(url,{
onload: function(res){
//func($Json.fromXML(res.text()));
func(res.text());
}
});
// set header
myAjax.header('Content-Type','application/json; charset=UTF-8');
myAjax.option("method", "post");
myAjax.request(param);
}
function geta(){
var param = {mid:'sol',module:'planet',act:'dispPlanetContentTagSearch',keyword:'done',page:1}
xeAjax(param,resultGetFavorite);
}
function resultGetFavorite(obj){
alert(obj);
}
}