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:
parent
6d32af8c82
commit
8428eb2747
|
@ -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>
|
||||
|
||||
* OpenChange/MAPIStoreMailMessageTable.m
|
||||
|
|
|
@ -1798,7 +1798,7 @@ function createButton(id, caption, action) {
|
|||
span.appendChild(document.createTextNode(caption));
|
||||
}
|
||||
if (action)
|
||||
newButton.observe("click", action);
|
||||
newButton.on("click", action);
|
||||
|
||||
return newButton;
|
||||
}
|
||||
|
@ -1838,6 +1838,13 @@ function showConfirmDialog(title, label, callbackYes, callbackNo) {
|
|||
var dialog = dialogs[title+label];
|
||||
if (dialog) {
|
||||
$("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 {
|
||||
var fields = createElement("p");
|
||||
|
|
Loading…
Reference in a new issue