- revert unnecessary index check

This commit is contained in:
ccooper%deadsquid.com 2006-06-28 20:51:45 +00:00
parent 528785f0f4
commit b2e13fc077

View File

@ -37,13 +37,9 @@ function load_testgroups(selects) {
addNullEntry(groupbox);
// find the currently selected product that goes with this select
var productbox = document.getElementById("product"+groupbox.name.substr(9));
if (productbox.selectedIndex >= 0) {
var productid = productbox.options[productbox.selectedIndex].value;
var product = getProductById(productid);
if (!product) {
return;
}
} else {
var productid = productbox.options[productbox.selectedIndex].value;
var product = getProductById(productid);
if (!product) {
return;
}
// now get the list of testgroups that goes with that product: