зеркало из https://github.com/mozilla/gecko-dev.git
Bug 106957. Javascript strict warnings in selectLang.js. Patch by Stephen Walker <walk84@usa.net> r=stephend/sr=alecf
This commit is contained in:
Родитель
60d7064439
Коммит
b6ef1e80d1
|
@ -14,7 +14,7 @@ function Startup()
|
||||||
var selectedRegion = window.arguments.length ? window.arguments[1] : null;
|
var selectedRegion = window.arguments.length ? window.arguments[1] : null;
|
||||||
var list = document.getElementById("regionList");
|
var list = document.getElementById("regionList");
|
||||||
if (selectedRegion) {
|
if (selectedRegion) {
|
||||||
var elements = list.getElementsByAttribute("value", selectedRegion);
|
elements = list.getElementsByAttribute("value", selectedRegion);
|
||||||
if (elements.length)
|
if (elements.length)
|
||||||
list.selectedItem = elements[0];
|
list.selectedItem = elements[0];
|
||||||
} else {
|
} else {
|
||||||
|
@ -36,7 +36,7 @@ function onAccept()
|
||||||
|
|
||||||
//cache region on the parent window
|
//cache region on the parent window
|
||||||
var list = document.getElementById("regionList");
|
var list = document.getElementById("regionList");
|
||||||
var selectedItem = list.selectedItem;
|
selectedItem = list.selectedItem;
|
||||||
if (selectedItem) {
|
if (selectedItem) {
|
||||||
var regionName = selectedItem.getAttribute("value");
|
var regionName = selectedItem.getAttribute("value");
|
||||||
var regionStore = opener.document.getElementById("ProfileRegion");
|
var regionStore = opener.document.getElementById("ProfileRegion");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче