See Changelog

Monotone-Parent: 57eac757f7d831fe529b14ff7416da35dd2eeff0
Monotone-Revision: 87cdbdef6d83dbc434c03ced31452112ebb2df51

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-01-05T19:04:15
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle 2011-01-05 19:04:15 +00:00
parent 6d32af8c82
commit 8428eb2747
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-01-05 Francis Lachapelle <flachapelle@inverse.ca>
* UI/WebServerResources/generic.js (showConfirmDialog): buttons
callbacks must be updated when retrieving dialog box from cache.
2010-12-30 Wolfgang Sourdeau <wsourdeau@inverse.ca> 2010-12-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreMailMessageTable.m * OpenChange/MAPIStoreMailMessageTable.m

View file

@ -1798,7 +1798,7 @@ function createButton(id, caption, action) {
span.appendChild(document.createTextNode(caption)); span.appendChild(document.createTextNode(caption));
} }
if (action) if (action)
newButton.observe("click", action); newButton.on("click", action);
return newButton; return newButton;
} }
@ -1838,6 +1838,13 @@ function showConfirmDialog(title, label, callbackYes, callbackNo) {
var dialog = dialogs[title+label]; var dialog = dialogs[title+label];
if (dialog) { if (dialog) {
$("bgDialogDiv").show(); $("bgDialogDiv").show();
// Update callbacks on buttons
var buttons = dialog.getElementsByTagName("a");
buttons[0].stopObserving();
buttons[0].on("click", callbackYes);
buttons[1].stopObserving();
buttons[1].on("click", callbackNo || disposeDialog);
} }
else { else {
var fields = createElement("p"); var fields = createElement("p");