* Adjust code for testtask batchRun.
This commit is contained in:
@@ -166,19 +166,39 @@ if($shortcut.size() > 0)
|
||||
$(function(){$('#casesForm').table();})
|
||||
<?php endif;?>
|
||||
$("thead").find('.c-assignedTo').attr('class', '');
|
||||
function confirmAction()
|
||||
function runAutocase()
|
||||
{
|
||||
var caseIDList = [];
|
||||
$.each($('input[name^=caseIDList]:checked'),function(){
|
||||
caseIDList.push($(this).val());
|
||||
});
|
||||
|
||||
var url = createLink('zanode', 'ajaxRunZTFScript', 'scriptID=<?php echo $automation->id;?>');
|
||||
|
||||
var postData = {'caseIDList' : caseIDList.join(',')};
|
||||
$.post(url, postData, function(result)
|
||||
{
|
||||
if(result.result == 'fail')
|
||||
{
|
||||
alert(result.message);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}, 'json');
|
||||
}
|
||||
|
||||
function confirmAction(obj)
|
||||
{
|
||||
if(confirm(runCaseConfirm))
|
||||
{
|
||||
setFormAction(confirmURL, '', '#caseList');
|
||||
var result = runAutocase();
|
||||
if(result) setFormAction(confirmURL, '', '#caseList');
|
||||
}
|
||||
else
|
||||
{
|
||||
setFormAction(cancelURL, '', '#caseList');
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user