mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-31 02:52:43 +00:00
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:
@@ -363,6 +363,12 @@ INPUT#loadImagesButton
|
||||
right: 1em;
|
||||
}
|
||||
|
||||
.popup INPUT#loadImagesButton
|
||||
{
|
||||
top: 9.0em;
|
||||
right: 1em;
|
||||
}
|
||||
|
||||
TABLE.mailer_fieldtable
|
||||
{ top: 0px;
|
||||
left: 0px;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user