зеркало из https://github.com/mozilla/pjs.git
- revert unnecessary index check
This commit is contained in:
Родитель
17fa20ac61
Коммит
882b4c20ba
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче