* fix bug #30994.
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
.chosen-results > li.has-test.highlighted,
|
||||
.chosen-results > li.has-new-test.highlighted {color: #fff;}
|
||||
|
||||
.c-multipleTask {width: 110px;}
|
||||
.c-modulel {width: 110px;}
|
||||
|
||||
.keep-row-height {height: 32px;}
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
.c-multipleTask {width: 120px;}
|
||||
.c-modulel {width: 110px;}
|
||||
.c-selectStory {width: 150px;}
|
||||
|
||||
@@ -581,7 +581,7 @@ $('#modalTeam tfoot .btn').click(function()
|
||||
var team = '';
|
||||
var time = 0;
|
||||
var error = false;
|
||||
var mode = $('#mode').val();
|
||||
var mode = $('[name="mode"]').val();
|
||||
|
||||
$('select[name^=team]').each(function()
|
||||
{
|
||||
|
||||
@@ -79,7 +79,7 @@ foreach(explode(',', $config->task->create->requiredFields) as $field)
|
||||
</div>
|
||||
</td>
|
||||
<td colspan='2'>
|
||||
<div class="checkbox-primary c-multipleTask affair" style='display: inline-block; margin-right: <?php echo common::checkNotCN() ? '-10px' : '-30px'?>'>
|
||||
<div class="checkbox-primary c-multipleTask affair" style='display: inline-block; margin-right: 10px'>
|
||||
<input type="checkbox" name="multiple" value="1" id="multipleBox" /><label for="multipleBox" class="no-margin"><?php echo $lang->task->multiple;?></label>
|
||||
</div>
|
||||
<div class='hidden modeBox' style='display: inline-block'><?php echo html::radio('mode', $lang->task->modeList, !empty($task->mode) ? $task->mode: 'linear');?></div>
|
||||
|
||||
@@ -184,7 +184,7 @@ $(document).ready(function()
|
||||
|
||||
var disableMembers = function()
|
||||
{
|
||||
var mode = $('#mode').length > 0 ? $('#mode').val() : '<?php echo (!empty($task->mode) ? $task->mode : '')?>';
|
||||
var mode = $('[name="mode"]').length > 0 ? $('[name="mode"]').val() : '<?php echo (!empty($task->mode) ? $task->mode : '')?>';
|
||||
if(mode == 'multi')
|
||||
{
|
||||
var members = [];
|
||||
@@ -268,7 +268,7 @@ $(document).ready(function()
|
||||
$newRow.removeClass('highlight');
|
||||
}, 1600);
|
||||
|
||||
var taskMode = $('#mode').val();
|
||||
var taskMode = $('[name="mode"]').val();
|
||||
if(taskMode == 'multi') $('#taskTeamEditor tr.member .icon-angle-down').addClass('hidden');
|
||||
|
||||
disableMembers();
|
||||
@@ -323,7 +323,7 @@ $(document).ready(function()
|
||||
$(this).closest('tr').find('input[id^=teamEstimate]').closest('.input-group').toggleClass('required', $(this).val() != '')
|
||||
});
|
||||
|
||||
$('#mode').change(function()
|
||||
$('[name="mode"]').change(function()
|
||||
{
|
||||
if($(this).val() == 'multi')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user