* move 'byProjects' to left bar.

This commit is contained in:
zhujinyong
2013-01-22 05:48:34 +00:00
parent 01f3d287fb
commit 9823289d2c
3 changed files with 35 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
.bug, .task {color:gray; font-size:9px}
.cont-lt1 .side{width:220px}
#sidebar{width:20px;cursor:pointer;}
#hideButton{cursor:pointer;}

View File

@@ -1,5 +1,29 @@
$(function()
{
if($.cookie('projectBar') != 'show')
{
$('#project').hide();
setOuterBox();
}
else
{
$('#sidebar').hide();
setOuterBox();
}
if(browseType == 'bysearch') ajaxGetSearchForm();
$('.iframe').colorbox({width:900, height:400, iframe:true});
});
function showProject()
{
$('#sidebar').hide();
$('#project').show();
$.cookie('projectBar', 'show');
}
function hideProject()
{
$('#sidebar').show();
$('#project').hide();
$.cookie('projectBar', 'hide');
}

View File

@@ -18,22 +18,26 @@
<script language='Javascript'>
var browseType = '<?php echo $browseType;?>';
</script>
<div id='querybox' class='<?php if($browseType !='bysearch') echo 'hidden';?>'></div>
<div id='querybox' class='<?php if($browseType != 'bysearch') echo 'hidden';?>'></div>
<table class='cont-lt1'>
<tr valign='top'>
<?php if($project->type !='sprint'):?>
<td class='side'>
<div class='box-title'><?php echo $lang->project->projectTasks;?></div>
<td id="sidebar" onclick="showProject()">>></td>
<td class='side' id='project'>
<div class='box-title'>
<?php echo $lang->project->projectTasks;?>
<div class="f-right" id='hideButton' onclick="hideProject()"><<</div>
</div>
<div class='box-content'><?php echo $projectTree;?></div>
</td>
<td class='divider'></td>
<?php if($project->type !='sprint'):?>
<td class='side'>
<div class='box-title'><?php echo $project->name;?></div>
<div class='box-content'>
<?php echo $moduleTree;?>
<div class='a-right'>
<?php common::printLink('project', 'edit', "projectID=$projectID", $lang->edit);?>
<?php common::printLink('project', 'delete', "projectID=$projectID&confirm=no", $lang->delete, 'hiddenwin');?>
<?php common::printLink('project', 'delete', "projectID=$projectID&confirm=no", $lang->delete, 'hiddenwin');?>
<?php common::printLink('tree', 'browse', "rootID=$projectID&view=task", $lang->tree->manage);?>
<?php common::printLink('tree', 'fix', "root=$projectID&type=task", $lang->tree->fix, 'hiddenwin');?>
</div>