* Adjust code function confirmAction for testtask betchRun.

This commit is contained in:
tanghucheng
2022-12-15 23:24:52 +08:00
parent 772c31f7f9
commit f71dfb3086
5 changed files with 41 additions and 3 deletions
+13 -1
View File
@@ -74,7 +74,7 @@
</thead>
<tbody>
<?php foreach($runs as $run):?>
<tr data-id='<?php echo $run->id?>'>
<tr data-id='<?php echo $run->id?>' data-auto='<?php echo $run->auto;?>'>
<?php foreach($setting as $key => $value) $this->testtask->printCell($value, $run, $users, $task, $branches, $useDatatable ? 'datatable' : 'table');?>
</tr>
<?php endforeach;?>
@@ -189,6 +189,18 @@ function runAutocase()
function confirmAction(obj)
{
var autoRun = 'no';
$.each($('input[name^=caseIDList]:checked'),function(){
var dataAuto = $(this).parents('tr').attr('data-auto');
if(dataAuto == 'auto') autoRun = dataAuto;
});
if(autoRun == 'no')
{
setFormAction(cancelURL, '', '#caseList');
return false;
}
if(confirm(runCaseConfirm))
{
var result = runAutocase();