* adjust code.

This commit is contained in:
wangyidong
2016-03-11 15:01:09 +08:00
parent 2a748ac35f
commit 563541db13
4 changed files with 5 additions and 20 deletions
+2 -8
View File
@@ -102,10 +102,7 @@ js::set('refresh', $lang->refresh);
<div class='col-table'>
<div class='input-group'>
<span class='input-group-addon fix-border br-0'><?php echo $lang->bug->severity;?></span>
<?php
$isAllNumberSeverity = true;
if(!is_numeric(join($lang->bug->severityList))) $isAllNumberSeverity = false;
?>
<?php $isAllNumberSeverity = is_numeric(join($lang->bug->severityList));?>
<?php if(!$isAllNumberSeverity):?>
<?php echo html::select('pri', (array)$lang->bug->severityList, $severity, "class='form-control minw-80px'");?>
<?php else: ?>
@@ -118,10 +115,7 @@ js::set('refresh', $lang->refresh);
</div>
<?php endif; ?>
<span class='input-group-addon fix-border br-0'><?php echo $lang->bug->pri;?></span>
<?php
$isAllNumberPri = true;
if(!is_numeric(join($lang->bug->priList))) $isAllNumberPri = false;
?>
<?php $isAllNumberPri = is_numeric(join($lang->bug->priList));?>
<?php if(!$isAllNumberPri):?>
<?php echo html::select('pri', (array)$lang->bug->priList, '', "class='form-control minw-80px'");?>
<?php else: ?>
+1 -4
View File
@@ -90,10 +90,7 @@
<div class='col-table w-250px'>
<div class="input-group">
<span class='input-group-addon fix-border br-0'><?php echo $lang->story->pri;?></span>
<?php
$isAllNumberPri = true;
if(!is_numeric(join('', $lang->story->priList))) $isAllNumberPri = false;
?>
<?php $isAllNumberPri = is_numeric(join('', $lang->story->priList)); ?>
<?php if(!$isAllNumberPri):?>
<?php echo html::select('pri', (array)$lang->story->priList, $pri, "class='form-control minw-80px'");?>
<?php else: ?>
+1 -4
View File
@@ -61,10 +61,7 @@
<div class='col-table w-250px'>
<div class="input-group">
<span class='input-group-addon fix-border br-0'><?php echo $lang->task->pri;?></span>
<?php
$isAllNumberPri = true;
if(!is_numeric(join($lang->task->priList))) $isAllNumberPri = false;
?>
<?php $isAllNumberPri = is_numeric(join($lang->task->priList));?>
<?php if(!$isAllNumberPri):?>
<?php echo html::select('pri', $lang->task->priList, '', "class='form-control minw-80px'");?>
<?php else: ?>
+1 -4
View File
@@ -81,10 +81,7 @@
<div class='col-table'>
<div class='input-group'>
<span class='input-group-addon fix-border br-0'><?php echo $lang->testcase->pri;?></span>
<?php
$isAllNumberPri = true;
if(!is_numeric(join($lang->testcase->priList))) $isAllNumberPri = false;
?>
<?php $isAllNumberPri = is_numeric(join($lang->testcase->priList));?>
<?php if(!$isAllNumberPri):?>
<?php echo html::select('pri', (array)$lang->testcase->priList, $pri, "class='form-control minw-80px'");?>
<?php else: ?>