зеркало из https://github.com/mozilla/pjs.git
hack around 26265/25571 mac profile wizard failing because of string bundle load failure, r=jst@citec.fi
This commit is contained in:
Родитель
f1b91f18df
Коммит
ea5f04c164
|
@ -124,7 +124,13 @@ function processCreateProfileData( aProfName, aProfDir )
|
|||
// dropout layery thing. yeah. something like that to tell them when
|
||||
// it happens, not when the whole wizard is complete. blah.
|
||||
if( profile.profileExists( aProfName ) ) {
|
||||
try {
|
||||
alert( bundle.GetStringFromName( "profileExists" ) );
|
||||
}
|
||||
catch(e) {
|
||||
// mac stringbundle failure. put up a ridiculous hard coded message.
|
||||
alert( "Oh Yah, the profile name you chose already exists, yah!");
|
||||
}
|
||||
// this is a bad but probably acceptable solution for now.
|
||||
// when we add more panels, we will want a better solution.
|
||||
window.frames["content"].document.getElementById("ProfileName").focus();
|
||||
|
|
|
@ -112,7 +112,13 @@ function getProfileDir(folder, showPopup)
|
|||
folderText.setAttribute( "rootFolder", folder );
|
||||
if(!detect) {
|
||||
var useDefault = document.createElement("titledbutton");
|
||||
try {
|
||||
useDefault.setAttribute("value",bundle.GetStringFromName("useDefaultFolder"));
|
||||
}
|
||||
catch(e) {
|
||||
// mac string bundle hack
|
||||
useDefault.setAttribute("value", "Use default folder, yah");
|
||||
}
|
||||
useDefault.setAttribute("class","dialog push");
|
||||
useDefault.setAttribute("id","useDefaultButton");
|
||||
useDefault.setAttribute("onclick","UseDefaultFolder();");
|
||||
|
@ -136,7 +142,13 @@ function UseDefaultFolder()
|
|||
if(FolderButtons.childNodes.length > 1)
|
||||
FolderButtons.removeChild(FolderButtons.lastChild);
|
||||
var span = document.getElementById("deffoldername")
|
||||
try {
|
||||
var text = document.createTextNode(bundle.GetStringFromName("defaultString"));
|
||||
}
|
||||
catch(e) {
|
||||
// mac string bundle hack
|
||||
var text = document.createTextNode("the default folder, yah.");
|
||||
}
|
||||
span.appendChild(text);
|
||||
detect = false;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче