зеркало из https://github.com/mozilla/gecko-dev.git
Added debug statements with a flag and additional fixes
This commit is contained in:
Родитель
600981fd15
Коммит
2419284b45
|
@ -150,7 +150,8 @@ function saveNewConfigFile(fileName, inValue, doPrompt)
|
|||
|
||||
function debug(theString)
|
||||
{
|
||||
top.globals.debug(theString);
|
||||
if (top.debugFlag == true)
|
||||
top.globals.debug(theString);
|
||||
}
|
||||
|
||||
|
||||
|
@ -165,7 +166,7 @@ function GetNameValuePair(inFileName, sectionName, flagName)
|
|||
var data = top.globals.document.setupPlugin.GetNameValuePair(fileName, sectionName, flagName);
|
||||
|
||||
|
||||
// debug("\tGetNameValuePair: (" + inFileName + ") [" +sectionName+ "] " +flagName+ "=" + data);
|
||||
debug("\tGetNameValuePair: (" + inFileName + ") [" +sectionName+ "] " +flagName+ "=" + data);
|
||||
return data;
|
||||
}
|
||||
|
||||
|
@ -178,7 +179,7 @@ function SetNameValuePair(inFileName, section, variable, data)
|
|||
var fileName = completeConfigFilePath(inFileName);
|
||||
|
||||
top.globals.document.setupPlugin.SetNameValuePair(fileName, section, variable, data);
|
||||
// debug("\tSetNameValuePair: (" + fileName + ")[" +section+ "] " +variable+ "=" + data);
|
||||
debug("\tSetNameValuePair: (" + fileName + ")[" +section+ "] " +variable+ "=" + data);
|
||||
}
|
||||
|
||||
function getFileListFromConfigFolder(fileSuffix)
|
||||
|
@ -221,9 +222,9 @@ function fillSelectListWithConfigFiles(formName, selectListName, fileSuffix, off
|
|||
curConfigDescription = GetNameValuePair(fileList[i], "Dial-In Configuration", "Description");
|
||||
|
||||
if ((curConfigName != null) && (curConfigName != ""))
|
||||
parent.tabs.tabbody.document[formName][selectListName].options[parent.tabs.tabbody.document[formName][selectListName].length] = new Option(curConfigName,fileList[i], false, false);
|
||||
parent.tabs.tabbody.document[formName][selectListName].options[parent.tabs.tabbody.document[formName][selectListName].length] = new Option(curConfigName + " (" + fileList[i] + ")",fileList[i], false, false);
|
||||
else if ((curConfigDescription != null) && (curConfigDescription != ""))
|
||||
parent.tabs.tabbody.document[formName][selectListName].options[parent.tabs.tabbody.document[formName][selectListName].length] = new Option(curConfigDescription,fileList[i], false, false);
|
||||
parent.tabs.tabbody.document[formName][selectListName].options[parent.tabs.tabbody.document[formName][selectListName].length] = new Option(curConfigDescription + " (" + fileList[i] + ")",fileList[i], false, false);
|
||||
else
|
||||
parent.tabs.tabbody.document[formName][selectListName].options[parent.tabs.tabbody.document[formName][selectListName].length] = new Option(fileList[i],fileList[i], false, false);
|
||||
|
||||
|
|
|
@ -166,7 +166,8 @@ function saveNewConfigFile(fileName, inValue, doPrompt)
|
|||
|
||||
function debug(theString)
|
||||
{
|
||||
top.globals.debug(theString);
|
||||
if (top.debugFlag == true)
|
||||
top.globals.debug(theString);
|
||||
}
|
||||
|
||||
|
||||
|
@ -180,7 +181,8 @@ function GetNameValuePair(inFileName, sectionName, flagName)
|
|||
var data = top.globals.document.setupPlugin.GetNameValuePair(fileName, sectionName, flagName);
|
||||
|
||||
|
||||
//debug("\tGetNameValuePair: (" + inFileName + ") [" +sectionName+ "] " +flagName+ "=" + data);
|
||||
debug("\tGetNameValuePair: (" + inFileName + ") [" +sectionName+ "] " +flagName+ "=" + data);
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
|
@ -192,7 +194,8 @@ function SetNameValuePair(inFileName, section, variable, data)
|
|||
var fileName = completeConfigFilePath(inFileName);
|
||||
|
||||
top.globals.document.setupPlugin.SetNameValuePair(fileName, section, variable, data);
|
||||
//debug("\tSetNameValuePair: (" + fileName + ")[" +section+ "] " +variable+ "=" + data);
|
||||
|
||||
debug("\tSetNameValuePair: (" + fileName + ")[" +section+ "] " +variable+ "=" + data);
|
||||
}
|
||||
|
||||
function getFileListFromConfigFolder(fileSuffix)
|
||||
|
@ -234,9 +237,9 @@ function fillSelectListWithConfigFiles(formName, selectListName, fileSuffix, off
|
|||
curConfigDescription = GetNameValuePair(fileList[i], "Dial-In Configuration", "Description");
|
||||
|
||||
if ((curConfigName != null) && (curConfigName != ""))
|
||||
parent.tabs.tabbody.document[formName][selectListName].options[parent.tabs.tabbody.document[formName][selectListName].length] = new Option(curConfigName,fileList[i], false, false);
|
||||
parent.tabs.tabbody.document[formName][selectListName].options[parent.tabs.tabbody.document[formName][selectListName].length] = new Option(curConfigName + " (" + fileList[i] + ")",fileList[i], false, false);
|
||||
else if ((curConfigDescription != null) && (curConfigDescription != ""))
|
||||
parent.tabs.tabbody.document[formName][selectListName].options[parent.tabs.tabbody.document[formName][selectListName].length] = new Option(curConfigDescription,fileList[i], false, false);
|
||||
parent.tabs.tabbody.document[formName][selectListName].options[parent.tabs.tabbody.document[formName][selectListName].length] = new Option(curConfigDescription + " (" + fileList[i] + ")",fileList[i], false, false);
|
||||
else
|
||||
parent.tabs.tabbody.document[formName][selectListName].options[parent.tabs.tabbody.document[formName][selectListName].length] = new Option(fileList[i],fileList[i], false, false);
|
||||
|
||||
|
|
|
@ -166,7 +166,8 @@ function saveNewConfigFile(fileName, inValue, doPrompt)
|
|||
|
||||
function debug(theString)
|
||||
{
|
||||
top.globals.debug(theString);
|
||||
if (top.debugFlag == true)
|
||||
top.globals.debug(theString);
|
||||
}
|
||||
|
||||
|
||||
|
@ -182,7 +183,7 @@ function GetNameValuePair(inFileName, sectionName, flagName)
|
|||
var data = top.globals.document.setupPlugin.GetNameValuePair(fileName, sectionName, flagName);
|
||||
|
||||
|
||||
//debug("\tGetNameValuePair: (" + inFileName + ") [" +sectionName+ "] " +flagName+ "=" + data);
|
||||
debug("\tGetNameValuePair: (" + inFileName + ") [" +sectionName+ "] " +flagName+ "=" + data);
|
||||
return data;
|
||||
}
|
||||
|
||||
|
@ -194,7 +195,7 @@ function SetNameValuePair(inFileName, section, variable, data)
|
|||
var fileName = completeConfigFilePath(inFileName);
|
||||
|
||||
top.globals.document.setupPlugin.SetNameValuePair(fileName, section, variable, data);
|
||||
//debug("\tSetNameValuePair: (" + fileName + ")[" +section+ "] " +variable+ "=" + data);
|
||||
debug("\tSetNameValuePair: (" + fileName + ")[" +section+ "] " +variable+ "=" + data);
|
||||
}
|
||||
|
||||
function getFileListFromConfigFolder(fileSuffix)
|
||||
|
@ -238,9 +239,9 @@ function fillSelectListWithConfigFiles(formName, selectListName, fileSuffix, off
|
|||
curConfigDescription = GetNameValuePair(fileList[i], "Dial-In Configuration", "Description");
|
||||
|
||||
if ((curConfigName != null) && (curConfigName != ""))
|
||||
document[formName][selectListName].options[document[formName][selectListName].length] = new Option(curConfigName,fileList[i], false, false);
|
||||
document[formName][selectListName].options[document[formName][selectListName].length] = new Option(curConfigName + " (" + fileList[i] + ")",fileList[i], false, false);
|
||||
else if ((curConfigDescription != null) && (curConfigDescription != ""))
|
||||
document[formName][selectListName].options[document[formName][selectListName].length] = new Option(curConfigDescription,fileList[i], false, false);
|
||||
document[formName][selectListName].options[document[formName][selectListName].length] = new Option(curConfigDescription + " (" + fileList[i] + ")",fileList[i], false, false);
|
||||
else
|
||||
document[formName][selectListName].options[document[formName][selectListName].length] = new Option(fileList[i],fileList[i], false, false);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче