mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
- revert unnecessary index check
This commit is contained in:
parent
528785f0f4
commit
b2e13fc077
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user