468073b131
Monotone-Parent: 508bbe52515b0ad7119c755b4cc91d17e313c06b Monotone-Revision: d09001490c2d88332ef3ec446bfd0aa488d0de8c Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-11-04T22:13:20 Monotone-Branch: ca.inverse.sogo
45 lines
1.3 KiB
JavaScript
45 lines
1.3 KiB
JavaScript
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
function onPrintCurrentMessage(event) {
|
|
window.print();
|
|
|
|
preventDefault(event);
|
|
}
|
|
|
|
function initPopupMailer(event) {
|
|
configureLinksInMessage();
|
|
resizeMailContent();
|
|
|
|
configureLoadImagesButton();
|
|
configureSignatureFlagImage();
|
|
}
|
|
|
|
function onICalendarButtonClick(event) {
|
|
var link = $("iCalendarAttachment").value;
|
|
if (link) {
|
|
var urlstr = link + "/" + this.action;
|
|
if (window.opener && window.opener.open && !window.opener.closed && window.messageUID) {
|
|
var c = window.opener;
|
|
window.opener.triggerAjaxRequest(urlstr,
|
|
window.opener.ICalendarButtonCallback,
|
|
window.messageUID);
|
|
}
|
|
}
|
|
else
|
|
log("no link");
|
|
}
|
|
|
|
function onMenuDeleteMessage(event) {
|
|
if (window.opener && window.opener.open && !window.opener.closed) {
|
|
var url = ApplicationBaseURL + encodeURI(mailboxName) + "/deleteMessages";
|
|
var path = mailboxName + "/" + messageName;
|
|
|
|
window.opener.deleteMessageWithDelay(url, messageName, mailboxName, path);
|
|
}
|
|
|
|
window.close();
|
|
return false;
|
|
}
|
|
|
|
document.observe("dom:loaded", initPopupMailer);
|