Monotone-Parent: 18f239a3de0b7ac267996e840fa462638dadaf29

Monotone-Revision: 7bd51d30db3d6ece97902530cd9a95f45334a530

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-12-10T22:34:12
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-12-10 22:34:12 +00:00
parent bc548c963c
commit bb8e7c71ff
7 changed files with 55 additions and 17 deletions
+6 -3
View File
@@ -985,9 +985,12 @@ function onMenuViewMessageSource(event) {
preventDefault(event);
}
function viewImage(event) {
function saveImage(event) {
var img = document.menuTarget;
window.open(img.getAttribute("src"),'_blank','resizable=1');
var url = img.getAttribute("src");
var urlAsAttachment = url.replace(/(\/[^\/]*)$/,"/asAttachment$1");
window.location.href = urlAsAttachment;
}
/* contacts */
@@ -1742,7 +1745,7 @@ function getMenus() {
"mark-menu", "-",
null, null,
onMenuDeleteMessage);
menus["imageMenu"] = new Array(viewImage);
menus["imageMenu"] = new Array(saveImage);
menus["messageContentMenu"] = new Array(onMenuReplyToSender,
onMenuReplyToAll,
onMenuForwardMessage,