Bugs 70379, 70380 - Hide nsISingleSignon from embedding apps, split auth prompting methods out of nsIPrompt into a new interface. r=valeski, sr=rpotts.

This commit is contained in:
ccarlen%netscape.com 2006-07-27 14:53:47 +00:00
Родитель f6d5eef062
Коммит e04616a8db
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -447,7 +447,7 @@ function NewCategory()
var promptStr = bundle.GetStringFromName("NewCategoryPrompt");
var newTitle = bundle.GetStringFromName("NewCategoryTitle");
var result = {value:0};
var name = promptService.prompt(window, newTitle, promptStr, "", 0, "",result);
var name = promptService.prompt(window, newTitle, promptStr, result, null, {value:0});
if ((!result.value) || result.value == "") return(false);
var newName = RDF.GetLiteral(result.value);
@ -498,8 +498,8 @@ function RenameCategory()
var currentName = categoryList.selectedItem.getAttribute("label");
var promptStr = bundle.GetStringFromName("RenameCategoryPrompt");
var renameTitle = bundle.GetStringFromName("RenameCategoryTitle");
var result = {value:0};
var name = promptService.prompt(window,renameTitle,promptStr,"",0,currentName,result);
var result = {value:currentName};
var name = promptService.prompt(window,renameTitle,promptStr,result,null,{value:0});
if ((!result.value) || (result.value == "") || result.value == currentName) return(false);
var currentCatID = categoryList.selectedItem.getAttribute("id");