зеркало из https://github.com/mozilla/gecko-dev.git
Added code to allow users to identify the configuration along with filename
This commit is contained in:
Родитель
34787767a3
Коммит
b6deebf4d0
|
@ -102,9 +102,9 @@ function fillSelectListWithConfigFiles(formName, selectListName, fileSuffix, off
|
|||
curConfigDescription = parent.iasglobals.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);
|
||||
|
||||
|
|
|
@ -116,9 +116,9 @@ function fillSelectListWithConfigFiles(formName, selectListName, fileSuffix, off
|
|||
curConfigDescription = parent.nciglobals.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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче