зеркало из https://github.com/mozilla/gecko-dev.git
fix bug 67818 javascript strict warnings in pref-proxies.js
patch by maolson@earthlink.net r=timeless a=alecf
This commit is contained in:
Родитель
bc877fee4d
Коммит
0baf58d53c
|
@ -20,6 +20,7 @@ function Startup()
|
||||||
|
|
||||||
function DoEnabling()
|
function DoEnabling()
|
||||||
{
|
{
|
||||||
|
var i;
|
||||||
var ftp = document.getElementById("networkProxyFTP");
|
var ftp = document.getElementById("networkProxyFTP");
|
||||||
var ftpPort = document.getElementById("networkProxyFTP_Port");
|
var ftpPort = document.getElementById("networkProxyFTP_Port");
|
||||||
var http = document.getElementById("networkProxyHTTP");
|
var http = document.getElementById("networkProxyHTTP");
|
||||||
|
@ -41,22 +42,22 @@ function DoEnabling()
|
||||||
|
|
||||||
switch ( radiogroup.data ) {
|
switch ( radiogroup.data ) {
|
||||||
case "0":
|
case "0":
|
||||||
for( var i = 0; i < manual.length; i++ )
|
for (i = 0; i < manual.length; i++)
|
||||||
manual[i].setAttribute( "disabled", "true" );
|
manual[i].setAttribute( "disabled", "true" );
|
||||||
for( var i = 0; i < auto.length; i++ )
|
for (i = 0; i < auto.length; i++)
|
||||||
auto[i].setAttribute( "disabled", "true" );
|
auto[i].setAttribute( "disabled", "true" );
|
||||||
break;
|
break;
|
||||||
case "1":
|
case "1":
|
||||||
for( var i = 0; i < auto.length; i++ )
|
for (i = 0; i < auto.length; i++)
|
||||||
auto[i].setAttribute( "disabled", "true" );
|
auto[i].setAttribute( "disabled", "true" );
|
||||||
for( var i = 0; i < manual.length; i++ )
|
for (i = 0; i < manual.length; i++)
|
||||||
manual[i].removeAttribute( "disabled" );
|
manual[i].removeAttribute( "disabled" );
|
||||||
break;
|
break;
|
||||||
case "2":
|
case "2":
|
||||||
default:
|
default:
|
||||||
for( var i = 0; i < manual.length; i++ )
|
for (i = 0; i < manual.length; i++)
|
||||||
manual[i].setAttribute( "disabled", "true" );
|
manual[i].setAttribute( "disabled", "true" );
|
||||||
for( var i = 0; i < auto.length; i++ )
|
for (i = 0; i < auto.length; i++)
|
||||||
auto[i].removeAttribute( "disabled" );
|
auto[i].removeAttribute( "disabled" );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче