This commit is contained in:
hufangzhou
2023-10-12 11:09:52 +08:00
parent 52b10a6bda
commit 48045cb96b
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1747,7 +1747,7 @@ class testcase extends control
}
/* Get cases. */
$queryCondition = preg_replace("/AND\s+t[0-9]\.scene\s+=\s+'0'/i", '', $this->session->testcaseQueryCondition);
$queryCondition = preg_replace("/AND\s+t[0-9]\.scene\s+=\s+'0'/i", '', $this->session->testcaseQueryCondition);
if($this->session->testcaseOnlyCondition)
{
$caseIDList = array();
+16
View File
@@ -3,3 +3,19 @@ $(document).ready(function()
if(browseType == 'bysearch') $.toggleQueryBox(true);
if($('#caseList thead th.w-title').width() < 150) $('#caseList thead th.w-title').width(150);
});
/**
* Get checked items.
*
* @access public
* @return array
*/
function getCheckedItems()
{
var checkedItems = [];
$('#casesForm [name^=caseIDList]:checked').each(function(index, ele)
{
checkedItems.push($(ele).val());
});
return checkedItems;
};