mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-08 06:48:51 +00:00
Fix for bug #3065
Monotone-Parent: 64c0713802f9595de3f792409a68ecb74bb80532 Monotone-Revision: 389ebfd16dbf972c7427f7a8ebab62d72400c15c Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-10-24T22:30:19 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -44,15 +44,10 @@ function onICalendarButtonClick(event) {
|
||||
|
||||
function onMenuDeleteMessage(event) {
|
||||
if (window.opener && window.opener.open && !window.opener.closed) {
|
||||
var rowId_index = window.name.search(/[0-9]+$/);
|
||||
var rowId = window.name.substr(rowId_index);
|
||||
var messageId = window.opener.Mailer.currentMailbox + "/" + rowId;
|
||||
var url = ApplicationBaseURL + messageId + "/trash";
|
||||
var url = ApplicationBaseURL + encodeURI(mailboxName) + "/deleteMessages";
|
||||
var path = mailboxName + "/" + messageName;
|
||||
|
||||
window.opener.deleteMessageWithDelay(url,
|
||||
rowId,
|
||||
window.opener.Mailer.currentMailbox,
|
||||
messageId);
|
||||
window.opener.deleteMessageWithDelay(url, messageName, mailboxName, path);
|
||||
}
|
||||
|
||||
window.close();
|
||||
|
||||
Reference in New Issue
Block a user