mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-29 09:00:31 +00:00
Bug fixes for the new CSS modal dialog.
Monotone-Parent: 7e80d62d21237dc99d74c702f53f591b1fd10acc Monotone-Revision: d05f8aecb657893bff2082d8a6401c885709a426 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-08-05T15:57:09 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1692,7 +1692,7 @@ function createDialog(id, title, legend, content, positionClass) {
|
||||
else {
|
||||
bgDiv = createElement("div", "bgDialogDiv", ["bgDialog"]);
|
||||
document.body.appendChild(bgDiv);
|
||||
bgDiv.observe("click", onBodyClickDialogHandler.bind(document.body, id));
|
||||
bgDiv.observe("click", onBodyClickDialogHandler);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1723,8 +1723,12 @@ function createButton(id, caption, action) {
|
||||
return newButton;
|
||||
}
|
||||
|
||||
function onBodyClickDialogHandler(dialogId) {
|
||||
$(dialogId).hide();
|
||||
function onBodyClickDialogHandler() {
|
||||
$$("DIV.dialog").each(function(div) {
|
||||
if (div.visible())
|
||||
div.hide();
|
||||
});
|
||||
|
||||
$("bgDialogDiv").hide();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user