* adjust task #2725.

This commit is contained in:
chenfeiCF
2016-12-01 15:24:11 +08:00
parent 11f494ae07
commit dd29125b58
3 changed files with 17 additions and 2 deletions
+2
View File
@@ -15,3 +15,5 @@
.modal-dialog {margin-top: 10%!important;}
.checkbox input[type=checkbox], .checkbox-inline input[type=checkbox], .radio input[type=radio], .radio-inline input[type=radio] {margin-top: 1px;}
.type-tips {display: none; margin: 5px 0; color: #545454;}
+13
View File
@@ -9,3 +9,16 @@ $(function()
$('#copyProjects a').click(function(){setCopyProject($(this).data('id')); $('#copyProjectModal').modal('hide')});
$('#productsBox .col-sm-3').width($('#type').closest('td').width());
});
function showTypeTips()
{
var type = $('#type').val();
if(type == 'ops')
{
$('.type-tips').show();
}
else
{
$('.type-tips').hide();
}
}
+2 -2
View File
@@ -81,10 +81,10 @@
<tr>
<th><?php echo $lang->project->type;?></th>
<td>
<?php echo html::select('type', $lang->project->typeList, '', "class='form-control'");?>
<?php echo html::select('type', $lang->project->typeList, '', "class='form-control' onchange='showTypeTips()'");?>
</td>
<td>
<div class='help-block'><?php echo $lang->project->typeDesc;?></div>
<div class='type-tips'><?php echo $lang->project->typeDesc;?></div>
</td>
</tr>
<tr>