mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-29 15:15:37 +00:00
Monotone-Parent: 6162250d4f112737d358c735d1e1f381e3ffbff8
Monotone-Revision: 7ded349858423000ac245469d641c40ef5888d98 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-01-04T22:30:48 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -126,11 +126,27 @@ function modifyEvent(sender, modification) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function closeInvitationWindow() {
|
||||
var closeDiv = document.createElement("div");
|
||||
closeDiv.addClassName("javascriptPopupBackground");
|
||||
var closePseudoWin = document.createElement("div");
|
||||
closePseudoWin.addClassName("javascriptMessagePseudoWindow");
|
||||
closePseudoWin.style.top = "0px;";
|
||||
closePseudoWin.style.left = "0px;";
|
||||
closePseudoWin.style.right = "0px;";
|
||||
closePseudoWin.appendChild(document.createTextNode(labels["closeThisWindowMessage"].decodeEntities()));
|
||||
document.body.appendChild(closeDiv);
|
||||
document.body.appendChild(closePseudoWin);
|
||||
}
|
||||
|
||||
function modifyEventCallback(http) {
|
||||
if (http.readyState == 4) {
|
||||
if (http.status == 200) {
|
||||
log("closing window...?");
|
||||
window.close();
|
||||
if (queryParameters["mail-invitation"] == "yes")
|
||||
closeInvitationWindow();
|
||||
else
|
||||
window.close();
|
||||
}
|
||||
else {
|
||||
log("showing alert...");
|
||||
|
||||
Reference in New Issue
Block a user