commondialog service is being replaced by promptservice. bug 72112 continues

This commit is contained in:
danm%netscape.com 2006-07-29 05:36:21 +00:00
Родитель 3e09ae4aad
Коммит 2ec855e61b
1 изменённых файлов: 3 добавлений и 5 удалений

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

@ -74,15 +74,13 @@
} else {
// more than one value, have user select the one he wants
var commonDialogService =
Components.classes["@mozilla.org/appshell/commonDialogs;1"].getService();
commonDialogService =
commonDialogService.QueryInterface(Components.interfaces.nsICommonDialogs);
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();
promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService);
var position = {};
var title = " ";
var message = "";
var ok =
commonDialogService.Select
promptService.Select
(window, title, message, valueList.length, valueList, position)
if (ok) {
target.value = valueList[position.value];