mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-14 21:04:53 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user