planet todo 애드온에서 내 목록만 나오도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4755 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-11-04 10:14:07 +00:00
parent d3b37b39d4
commit e41c2fbac0
2 changed files with 5 additions and 5 deletions

View file

@ -17,12 +17,12 @@
$oPlanet = Context::get('planet');
if($oPlanet->isMyPlanet()){
$oPlanetModel = &getModel('planet');
$countTodo = $oPlanetModel->getTagSearchResultCount($this->module_srl,'todo');
$countDone = $oPlanetModel->getTagSearchResultCount($this->module_srl,'done');
$countTodo = $oPlanetModel->getTagSearchResultCount($oPlanet->getModuleSrl(),'todo');
$countDone = $oPlanetModel->getTagSearchResultCount($oPlanet->getModuleSrl(),'done');
Context::addHtmlHeader("<script type=\"text/javascript\">//<![CDATA[\nvar planet_todo_count={todo:".$countTodo.",done:".$countDone."};\n//]]></script>");
Context::addJsFile('./addons/planet_todo/planet_todo.js');
}
}
}
?>
?>

View file

@ -36,7 +36,7 @@ function planet_getDone(page){
function _getPlanetTagSeachResult(tag,page,func){
var response_tags = new Array('error','message','contentList','pageNavigation');
exec_xml('planet','dispPlanetContentTagSearch',{keyword:tag,page:page},func,response_tags);
exec_xml('planet','dispPlanetContentTagSearch',{keyword:tag,page:page,mid:current_mid},func,response_tags);
}
function result_planet_getTodo(ret_obj,response_tags, params, fo_obj) {
@ -191,4 +191,4 @@ function showWritePostTodo(tag){
$Element($('writePostForm').content_tag).show();
$('writePostForm').content_tag.value = tag;
showWritePost();
}
}