We now correctly position and support the "Load Images" option

in HTML mails from a popup window.

Monotone-Parent: 95dd42cd6a83e654864923e0ae5dba233def3394
Monotone-Revision: 222ceca8e71fe7e1c2395ac641b067b96b94ae3f

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2008-10-06T17:17:43
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2008-10-06 17:17:43 +00:00
parent 0be954db17
commit a369081014
3 changed files with 22 additions and 1 deletions

View File

@@ -363,6 +363,12 @@ INPUT#loadImagesButton
right: 1em;
}
.popup INPUT#loadImagesButton
{
top: 9.0em;
right: 1em;
}
TABLE.mailer_fieldtable
{ top: 0px;
left: 0px;

View File

@@ -790,7 +790,7 @@ function configureLoadImagesButton() {
// We show/hide the "Load Images" button
var loadImagesButton = $("loadImagesButton");
var displayLoadImages = $("displayLoadImages");
if (typeof(loadImagesButton) == "undefined" ||
loadImagesButton == null ) {
return;

View File

@@ -9,6 +9,21 @@ function onPrintCurrentMessage(event) {
function initPopupMailer(event) {
configureLinksInMessage();
resizeMailContent();
var loadImagesButton = $("loadImagesButton");
if (loadImagesButton)
loadImagesButton.observe("click",
onMessageLoadImages.bindAsEventListener(loadImagesButton));
configureLoadImagesButton();
}
function onMessageLoadImages(event) {
var msguid = window.opener.Mailer.currentMessages[window.opener.Mailer.currentMailbox];
var url = (window.opener.ApplicationBaseURL + window.opener.encodeURI(window.opener.Mailer.currentMailbox) + "/"
+ msguid + "/view?noframe=1&unsafe=1");
document.messageAjaxRequest
= triggerAjaxRequest(url, messageCallback, msguid);
}
function onICalendarButtonClick(event) {