* code for task#1613.

This commit is contained in:
xia0ta0
2013-07-25 10:03:27 +08:00
parent bf33420c03
commit 625831b766
4 changed files with 6 additions and 1 deletions

View File

@@ -146,6 +146,7 @@ class project extends control
{
$modules = $this->tree->getProjectModule($projectID, $productID);
$tasks = $this->loadModel('task')->getTasksByModule($projectID, $modules, $orderBy, $pager);
$this->view->productID = $productID;
}
elseif($status == 'byModule')
{

View File

@@ -9,3 +9,5 @@ function changeAction(formName, actionName, actionLink)
if(actionName == 'batchClose') $('#' + formName).attr('target', 'hiddenwin');
$('#' + formName).attr('action', actionLink).submit();
}
$('#module' + moduleID).addClass('active');
$('#product' + productID).addClass('active');

View File

@@ -16,6 +16,8 @@
<?php include '../../common/view/colorize.html.php';?>
<?php include '../../common/view/treeview.html.php';?>
<?php include './taskheader.html.php';?>
<?php js::set('moduleID', $moduleID);?>
<?php js::set('productID', $productID);?>
<script language='Javascript'>
var browseType = '<?php echo $browseType;?>';
</script>

View File

@@ -326,7 +326,7 @@ class treeModel extends model
}
else
{
$menu .= "<li>" . html::a(helper::createLink('project', 'task', "root=$rootID&status=byProduct&praram=$id"), $product);
$menu .= "<li>" . html::a(helper::createLink('project', 'task', "root=$rootID&status=byProduct&praram=$id"), $product, '_self', "id='product$id'");
}
/* tree menu. */