- revert unnecessary index check

This commit is contained in:
ccooper%deadsquid.com 2006-06-28 20:51:45 +00:00
Родитель 528785f0f4
Коммит b2e13fc077
1 изменённых файлов: 3 добавлений и 7 удалений

Просмотреть файл

@ -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: