зеркало из https://github.com/mozilla/gecko-dev.git
commondialog service is being replaced by promptservice. bug 72112 continues
This commit is contained in:
Родитель
3e09ae4aad
Коммит
2ec855e61b
|
@ -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];
|
||||
|
|
Загрузка…
Ссылка в новой задаче