b=363662
- allow listings to be sorted by name or id - change testcase display on manage subgroups page to be 'Name (ID)' to match other pages git-svn-id: svn://10.0.0.236/trunk@227373 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
dbc6c6a7c0
commit
ef2bbcf81c
@ -230,7 +230,7 @@ function populateAllTestcases() {
|
||||
}
|
||||
}
|
||||
|
||||
var optionText = testcases[i].testcase_id + ': ' + testcases[i].summary;
|
||||
var optionText = testcases[i].summary + ' (' + testcases[i].testcase_id + ')';
|
||||
selectBoxAll.options[selectBoxAll.length] = new Option(optionText,
|
||||
testcases[i].testcase_id);
|
||||
|
||||
|
||||
@ -366,3 +366,14 @@ function copyToList(from,to)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function sortSelect(formName,title,selectID,index,num) {
|
||||
disableForm(formName);
|
||||
rv = toggleMessage('loading','Sorting ' + title + ' list...');
|
||||
rv = confirm("Depending on the number of " + title + ", this can take a little while during which time the browser may be unresponsive. Proceed with sorting?")
|
||||
if (rv) {
|
||||
listSort(selectID,index,num,0);
|
||||
}
|
||||
rv = toggleMessage('none');
|
||||
enableForm(formName);
|
||||
}
|
||||
@ -100,11 +100,20 @@
|
||||
<td align="center" valign="middle"><input id="move_testcase_up_button" name="move_testcase_up_button" type="button" value="⇑" onClick="up('subgroup_testcases');"><br/><br/><input id="move_testcase_down_button" name="move_testcase_down_button" type="button" value="⇓" onClick="down('subgroup_testcases');"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">⇑ <a name="previewTestcase" onclick="previewTestcase('testcases_for_product');">Preview Testcase</a></td>
|
||||
<td>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
sort by: <a id="sortByNameHref" name="sortByNameHref" onClick="sortSelect('edit_subgroup_form','testcases','testcases_for_product',0,0)">Name</a> | <a id="sortByIDHref" id="sortByIDHref" onclick="sortSelect('edit_subgroup_form','testcases','testcases_for_product',1,1)">ID</a>
|
||||
</td>
|
||||
<td align="right">⇑ <a name="previewTestcase" onclick="previewTestcase('testcases_for_product');">Preview Testcase</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td></td>
|
||||
<td align="right">⇑ <a name="previewTestcase" onclick="previewTestcase('subgroup_testcases');">Preview Testcase</a></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="right">⇑ <a name="showManageTestcasesHelp" onclick="toggleHelp(manageTestcasesHelpTitle,manageTestcasesHelpText);">Help with Managing Testcases</a></td>
|
||||
<td></td>
|
||||
|
||||
@ -174,7 +174,15 @@
|
||||
<td align="center" valign="middle"><input id="move_testgroup_up_button" name="move_testgroup_up_button" type="button" value="⇑" onClick="up('test_run_testgroups');"><br/><br/><input id="move_testgroup_down_button" name="move_testgroup_down_button" type="button" value="⇓" onClick="down('test_run_testgroups');"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">⇑ <a name="previewTestgroup" onclick="previewTestgroup('testgroups_for_product');">Preview Testgroup</a></td>
|
||||
<td>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
sort by: <a id="sortByNameHref" name="sortByNameHref" onClick="sortSelect('edit_test_run_form','testgroups','testgroups_for_product',0,0)">Name</a> | <a id="sortByIDHref" id="sortByIDHref" onclick="sortSelect('edit_test_run_form','testgroups','testgroups_for_product',1,1)">ID</a> </td>
|
||||
<td align="right">⇑ <a name="previewTestgroup" onclick="previewTestgroup('testgroups_for_product');">Preview Testgroup</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td></td>
|
||||
<td align="right">⇑ <a name="previewTestgroup" onclick="previewTestgroup('test_run_testgroups');">Preview Testgroup</a></td>
|
||||
<td></td>
|
||||
|
||||
@ -93,7 +93,15 @@
|
||||
<td align="center" valign="middle"><input id="move_subgroup_up_button" name="move_subgroup_up_button" type="button" value="⇑" onClick="up('testgroup_subgroups');"><br/><br/><input id="move_subgroup_down_button" name="move_subgroup_down_button" type="button" value="⇓" onClick="down('testgroup_subgroups');"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">⇑ <a name="previewSubgroup" onclick="previewSubgroup('subgroups_for_product');">Preview Subgroup</a></td>
|
||||
<td>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
sort by: <a id="sortByNameHref" name="sortByNameHref" onClick="sortSelect('edit_testgroup_form','subgroups','subgroups_for_product',0,0)">Name</a> | <a id="sortByIDHref" id="sortByIDHref" onclick="sortSelect('edit_testgroup_form','subgroups','subgroups_for_product',1,1)">ID</a> </td>
|
||||
<td align="right">⇑ <a name="previewSubgroup" onclick="previewSubgroup('subgroups_for_product');">Preview Subgroup</a>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td></td>
|
||||
<td align="right">⇑ <a name="previewSubgroup" onclick="previewSubgroup('testgroup_subgroups');">Preview Subgroup</a></td>
|
||||
<td></td>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user