mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-29 02:07:36 +00:00
merge of '314cdc639d9d8e37c3b7d63829a17bbd875a093e'
and '8edef594b9dbe81854edb93b0440fb81ef74970f' Monotone-Parent: 314cdc639d9d8e37c3b7d63829a17bbd875a093e Monotone-Parent: 8edef594b9dbe81854edb93b0440fb81ef74970f Monotone-Revision: 7be471a6a7e6a2c4d99f470e9617461175519459 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-10-08T20:26:33 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2010-10-08 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/generic.js (showConfirmDialog)
|
||||
(showPromptDialog): keys for cached dialogs are now build from a
|
||||
combination of the dialog title and label to avoid collisions.
|
||||
|
||||
* UI/WebServerResources/SchedulerUI.js
|
||||
(deleteEventFromViewCancel): new function loaded if the user
|
||||
cancel the deletion of an event. It clears the array of events to
|
||||
|
||||
@@ -1021,8 +1021,7 @@ function onMenuSharing(event) {
|
||||
var selected = folders.getSelectedNodes()[0];
|
||||
var owner = selected.getAttribute("owner");
|
||||
if (owner == "nobody")
|
||||
showAlertDialog(clabels["The user rights cannot be"
|
||||
+ " edited for this object!"]);
|
||||
showAlertDialog(_("The user rights cannot be edited for this object!"));
|
||||
else {
|
||||
var title = this.innerHTML;
|
||||
var url = URLForFolderID(selected.getAttribute("id"));
|
||||
|
||||
@@ -1822,7 +1822,7 @@ function _showAlertDialog(label) {
|
||||
}
|
||||
|
||||
function showConfirmDialog(title, label, callbackYes, callbackNo) {
|
||||
var dialog = dialogs[label];
|
||||
var dialog = dialogs[title+label];
|
||||
if (dialog) {
|
||||
$("bgDialogDiv").show();
|
||||
}
|
||||
@@ -1836,13 +1836,13 @@ function showConfirmDialog(title, label, callbackYes, callbackNo) {
|
||||
fields,
|
||||
"none");
|
||||
document.body.appendChild(dialog);
|
||||
dialogs[label] = dialog;
|
||||
dialogs[title+label] = dialog;
|
||||
}
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
function showPromptDialog(title, label, callback, defaultValue) {
|
||||
var dialog = dialogs[label];
|
||||
var dialog = dialogs[title+label];
|
||||
v = defaultValue?defaultValue:"";
|
||||
if (dialog) {
|
||||
$("bgDialogDiv").show();
|
||||
@@ -1867,7 +1867,7 @@ function showPromptDialog(title, label, callback, defaultValue) {
|
||||
fields,
|
||||
"none");
|
||||
document.body.appendChild(dialog);
|
||||
dialogs[label] = dialog;
|
||||
dialogs[title+label] = dialog;
|
||||
}
|
||||
dialog.show();
|
||||
dialog.down("input").focus();
|
||||
|
||||
Reference in New Issue
Block a user