* fix bug for activate multi mode task.
This commit is contained in:
@@ -16,7 +16,7 @@ $('#confirmButton').click(function()
|
||||
|
||||
var estimate = parseFloat($tr.find('[name^=teamEstimate]').val());
|
||||
if(!isNaN(estimate)) totalEstimate += estimate;
|
||||
if(isNaN(estimate) || estimate == 0)
|
||||
if($tr.hasClass('member-wait') && (isNaN(estimate) || estimate == 0))
|
||||
{
|
||||
bootbox.alert(account + ' ' + estimateNotEmpty);
|
||||
error = true;
|
||||
@@ -29,20 +29,12 @@ $('#confirmButton').click(function()
|
||||
var $left = $tr.find('[name^=teamLeft]');
|
||||
var left = parseFloat($left.val());
|
||||
if(!isNaN(left)) totalLeft += left;
|
||||
if(!$left.prop('readonly') && (isNaN(left) || left == 0))
|
||||
if(!$left.prop('readonly') && $tr.hasClass('member-wait') && (isNaN(left) || left == 0))
|
||||
{
|
||||
bootbox.alert(account + ' ' + leftNotEmpty);
|
||||
error = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
if(estimate == 0 || isNaN(estimate))
|
||||
{
|
||||
$(this).val('').trigger("chosen:updated");
|
||||
bootbox.alert(estimateNotEmpty);
|
||||
error = true;
|
||||
return false;
|
||||
}
|
||||
})
|
||||
|
||||
if(error) return false;
|
||||
|
||||
Reference in New Issue
Block a user