зеркало из https://github.com/mozilla/pjs.git
Not part of build - layout changes from Brian King, and some accessibility fixes
This commit is contained in:
Родитель
49df2055ed
Коммит
bac2206cbe
|
@ -5,9 +5,11 @@
|
|||
<!ENTITY beforeYouBegin.description "Decide which customizations you want to make and create/collect the customized files, such as:
|
||||
<html:ul>
|
||||
<html:li>Custom animation files for browser's animated logo</html:li>
|
||||
<html:li>Search pluginsfdsafdsafs</html:li>
|
||||
<html:li>Search plugins</html:li>
|
||||
<html:li>Browser plug-ins</html:li>
|
||||
</html:ul>">
|
||||
|
||||
<!ENTITY configurePage.label "Extension Configurations">
|
||||
<!ENTITY selectConfig.label "Select an Existing Configuration or Create a New One">
|
||||
<!ENTITY selectConfig.description "Select an existing configuration, or click 'New' to create a new configuration and workspace in which to store your custom files. To edit an existing configuration without overwriting the original configuration, select it from the list and click 'Copy'.">
|
||||
<!ENTITY showConfig.label "Show Config Info">
|
||||
|
|
|
@ -175,7 +175,9 @@ function updateconfiglist()
|
|||
menulist.selectedItem = menulistitem;
|
||||
selecteditem = true;
|
||||
document.getElementById('example-window').canAdvance = true;
|
||||
document.getElementById('byb-configs').disabled = false;
|
||||
document.getElementById('deleteconfig').disabled = false;
|
||||
document.getElementById('showconfig').disabled = false;
|
||||
}
|
||||
}
|
||||
if ((!selecteditem) && (list.length > 0)) {
|
||||
|
@ -184,7 +186,10 @@ function updateconfiglist()
|
|||
}
|
||||
if (list.length == 0) {
|
||||
document.getElementById('example-window').canAdvance = false;
|
||||
document.getElementById('deleteconfig').disabled = true;
|
||||
document.getElementById('byb-configs').disabled = true;
|
||||
document.getElementById('deleteconfig').disabled = true;
|
||||
document.getElementById('showconfig').disabled = true;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1113,8 +1118,11 @@ function CCKReadConfigFile(srcdir)
|
|||
var file = srcdir.clone();
|
||||
file.append("cck.config");
|
||||
|
||||
if (!file.exists())
|
||||
if (!file.exists()) {
|
||||
DoEnabling();
|
||||
toggleProxySettings();
|
||||
return;
|
||||
}
|
||||
|
||||
var stream = Components.classes["@mozilla.org/network/file-input-stream;1"]
|
||||
.createInstance(Components.interfaces.nsIFileInputStream);
|
||||
|
@ -1131,16 +1139,11 @@ function CCKReadConfigFile(srcdir)
|
|||
firstpart = str.substring(0,equals);
|
||||
secondpart = str.substring(equals+1);
|
||||
document.getElementById(firstpart).value = secondpart;
|
||||
if (firstpart == "ProxyType") {
|
||||
DoEnabling();
|
||||
}
|
||||
if (firstpart == "shareAllProxies") {
|
||||
toggleProxySettings();
|
||||
}
|
||||
}
|
||||
} while (more);
|
||||
|
||||
|
||||
DoEnabling();
|
||||
toggleProxySettings();
|
||||
|
||||
stream.close();
|
||||
}
|
||||
|
@ -1236,6 +1239,8 @@ function DoEnabling()
|
|||
|
||||
// radio buttons
|
||||
var radiogroup = document.getElementById("ProxyType");
|
||||
if (radiogroup.value == "")
|
||||
radiogroup.value = "0";
|
||||
|
||||
switch ( radiogroup.value ) {
|
||||
case "0":
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче