d1a05ac86c
Monotone-Revision: 73611f6bef70fd39e1aa66a4aae311b19f594980 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-12-10T15:56:13 Monotone-Branch: ca.inverse.sogo
30 lines
654 B
JavaScript
30 lines
654 B
JavaScript
function onPrintCurrentMessage(event) {
|
|
window.print();
|
|
|
|
preventDefault(event);
|
|
}
|
|
|
|
function initPopupMailer(event) {
|
|
configureLinksInMessage();
|
|
resizeMailContent();
|
|
}
|
|
|
|
function onMenuDeleteMessage(event) {
|
|
|
|
if (window.opener && window.opener.open && !window.opener.closed) {
|
|
var rowId = window.name.substr(9);
|
|
var messageId = window.opener.Mailer.currentMailbox + "/" + rowId;
|
|
var url = ApplicationBaseURL + messageId + "/trash";
|
|
|
|
window.opener.deleteMessageWithDelay(url,
|
|
rowId,
|
|
window.opener.Mailer.currentMailbox,
|
|
messageId);
|
|
}
|
|
|
|
window.close();
|
|
return false;
|
|
}
|
|
|
|
FastInit.addOnLoad(initPopupMailer);
|