diff --git a/suite/common/search/search-editor.js b/suite/common/search/search-editor.js index 6b428ddfc15a..02f0d25d5522 100644 --- a/suite/common/search/search-editor.js +++ b/suite/common/search/search-editor.js @@ -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");