зеркало из https://github.com/mozilla/gecko-dev.git
- revert unnecessary index check
This commit is contained in:
Родитель
528785f0f4
Коммит
b2e13fc077
|
@ -37,13 +37,9 @@ function load_testgroups(selects) {
|
||||||
addNullEntry(groupbox);
|
addNullEntry(groupbox);
|
||||||
// find the currently selected product that goes with this select
|
// find the currently selected product that goes with this select
|
||||||
var productbox = document.getElementById("product"+groupbox.name.substr(9));
|
var productbox = document.getElementById("product"+groupbox.name.substr(9));
|
||||||
if (productbox.selectedIndex >= 0) {
|
var productid = productbox.options[productbox.selectedIndex].value;
|
||||||
var productid = productbox.options[productbox.selectedIndex].value;
|
var product = getProductById(productid);
|
||||||
var product = getProductById(productid);
|
if (!product) {
|
||||||
if (!product) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// now get the list of testgroups that goes with that product:
|
// now get the list of testgroups that goes with that product:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче