зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f6d5eef062
Коммит
e04616a8db
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче