*Optimize the code.

This commit is contained in:
孙华伟
2022-05-17 17:28:11 +08:00
parent 3099628ce1
commit 545dcf550c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ $('#confirmButton').click(function()
alert(teamMemberError);
return false;
}
if(totalLeft == 0)
if(totalLeft == 0 && (taskStatus == 'doing' || taskStatus == 'pause'))
{
alert(totalLeftError);
return false;
+1
View File
@@ -18,6 +18,7 @@
<?php js::set('oldAssignedTo', $task->assignedTo);?>
<?php js::set('oldExecutionID', $task->execution);?>
<?php js::set('oldConsumed', $task->consumed);?>
<?php js::set('taskStatus', $task->status);?>
<?php js::set('confirmChangeExecution', $lang->task->confirmChangeExecution);?>
<?php js::set('changeExecutionConfirmed', false);?>
<?php js::set('newRowCount', count($task->team) < 6 ? 6 - count($task->team) : 1);?>