* code for task #38701.
This commit is contained in:
@@ -493,26 +493,26 @@ $('#modalTeam .btn').click(function()
|
||||
var time = 0;
|
||||
|
||||
/* Unique team. */
|
||||
$('[name*=team]').each(function(i)
|
||||
$('select[name^=team]').each(function(i)
|
||||
{
|
||||
value = $(this).val();
|
||||
if(value == '') return;
|
||||
$('[name*=team]').each(function(j)
|
||||
$('select[name^=team]').each(function(j)
|
||||
{
|
||||
if(i <= j) return;
|
||||
if(value == $(this).val()) $(this).closest('tr').addClass('hidden');
|
||||
})
|
||||
})
|
||||
$('[name*=team]').closest('tr.hidden').remove();
|
||||
$('select[name^=team]').closest('tr.hidden').remove();
|
||||
|
||||
$('[name*=team]').each(function()
|
||||
$('select[name^=team]').each(function()
|
||||
{
|
||||
if($(this).find('option:selected').text() != '')
|
||||
{
|
||||
team += ' ' + $(this).find('option:selected').text();
|
||||
}
|
||||
|
||||
estimate = parseFloat($(this).parents('td').next('td').find('[name*=teamEstimate]').val());
|
||||
estimate = parseFloat($(this).parents('td').next('td').find('[name^=teamEstimate]').val());
|
||||
if(!isNaN(estimate))
|
||||
{
|
||||
time += estimate;
|
||||
|
||||
Reference in New Issue
Block a user