* adjust code and fix bug.

This commit is contained in:
wyd621
2013-08-05 09:43:06 +08:00
parent 44b2bf5171
commit 5e26222608
4 changed files with 5 additions and 2 deletions

View File

@@ -713,7 +713,7 @@ class project extends control
$baselineJSON = '[]';
if($projectInfo->days <= $maxDays)
{
$firstBurn = reset($sets);
$firstBurn = empty($sets) ? 0 : reset($sets);
$firstTime = isset($firstBurn->value) ? $firstBurn->value : 0;
$days = count($dateList) - 1;
$rate = $firstTime / $days;

View File

@@ -16,6 +16,7 @@
<?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

@@ -1,4 +1,4 @@
<?php include '../../common/view/dropmenu.html.php';?>
<?php include $this->app->getModuleRoot() . 'common/view/dropmenu.html.php';?>
<div id='featurebar'>
<div class='f-left'>
<?php

View File

@@ -801,6 +801,8 @@ function setModal4List(colorboxClass, replaceID, callback)
$('.colored').colorize();
$('tfoot td').css('background', 'white').unbind('click').unbind('hover');
$(".date").datePicker({createButton:true, startDate:startDate})
.dpSetPosition($.dpConst.POS_TOP, $.dpConst.POS_RIGHT)
if(typeof(callback) == 'function') callback();
$.cookie('selfClose', 0);
});