mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-05 19:45:26 +00:00
See Changelog.
Monotone-Parent: 61d77b3172c7a72376f9b867ab6d96136e763698 Monotone-Revision: c08e4921f6ce7d20b4c9532750d271ac4a7a3e5a Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-08-19T21:26:31 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1801,6 +1801,26 @@ function _showAlertDialog(label) {
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
function showConfirmDialog(title, label, callback) {
|
||||
var dialog = dialogs[label];
|
||||
if (dialog) {
|
||||
$("bgDialogDiv").show();
|
||||
}
|
||||
else {
|
||||
var fields = createElement("p");
|
||||
fields.appendChild(createButton(null, _("Yes"), callback));
|
||||
fields.appendChild(createButton(null, _("No"), disposeDialog));
|
||||
dialog = createDialog(null,
|
||||
title,
|
||||
label,
|
||||
fields,
|
||||
"none");
|
||||
document.body.appendChild(dialog);
|
||||
dialogs[label] = dialog;
|
||||
}
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
function showPromptDialog(title, label, callback, defaultValue) {
|
||||
var dialog = dialogs[label];
|
||||
v = defaultValue?defaultValue:"";
|
||||
|
||||
Reference in New Issue
Block a user