* Update code.
This commit is contained in:
@@ -338,6 +338,7 @@ function compareChildDate()
|
||||
var selectedProgramID = $('#parent').val();
|
||||
if($('#dateTip').length > 0) $('#dateTip').remove();
|
||||
|
||||
if(end == longTime) end = LONG_TIME;
|
||||
if(end.length > 0 && begin.length > 0)
|
||||
{
|
||||
var programEnd = new Date(end);
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<?php js::set('LONG_TIME', LONG_TIME);?>
|
||||
<?php js::set('page', $this->app->getMethodName());?>
|
||||
<?php js::set('weekend', $config->execution->weekend);?>
|
||||
<?php js::set('longTime', $lang->program->longTime);?>
|
||||
|
||||
@@ -116,6 +116,7 @@ function computeEndDate(delta)
|
||||
$('#end').val(longTime);
|
||||
$('#daysBox').addClass('hidden');
|
||||
$('#days').val(0);
|
||||
outOfDateTip();
|
||||
return false;
|
||||
}
|
||||
$('#daysBox').removeClass('hidden');
|
||||
@@ -363,6 +364,8 @@ function outOfDateTip()
|
||||
{
|
||||
var end = $('#end').val();
|
||||
var begin = $('#begin').val();
|
||||
|
||||
if(end == longTime) end = LONG_TIME;
|
||||
if(end.length > 0 && begin.length > 0)
|
||||
{
|
||||
var selectedProgramID = $('#parent').val();
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<?php js::import($jsRoot . 'misc/date.js');?>
|
||||
<?php js::set('LONG_TIME', LONG_TIME);?>
|
||||
<?php js::set('model', $model);?>
|
||||
<?php js::set('programID', $programID);?>
|
||||
<?php js::set('copyProjectID', $copyProjectID);?>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<?php js::import($jsRoot . 'misc/date.js');?>
|
||||
<?php js::set('weekend', $config->execution->weekend);?>
|
||||
<?php js::set('LONG_TIME', LONG_TIME);?>
|
||||
<?php js::set('errorSameProducts', $lang->project->errorSameProducts);?>
|
||||
<?php js::set('errorSameBranches', $lang->project->errorSameBranches);?>
|
||||
<?php js::set('errorSamePlans', $lang->project->errorSamePlans);?>
|
||||
|
||||
Reference in New Issue
Block a user