mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-28 09:32:46 +00:00
Monotone-Parent: 8ef0ab24c4c10895d5e911f82260ba93fedbb853
Monotone-Revision: 0f1ef8f1bf7e8be2363a84056b5ce417b06606f7 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-10-30T19:56:50 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -232,15 +232,12 @@ function clickedEditorSave(sender) {
|
||||
if (input)
|
||||
input.parentNode.removeChild(input);
|
||||
|
||||
var toolbar = document.getElementById("toolbar");
|
||||
if (!document.busyAnim)
|
||||
document.busyAnim = startAnimation(toolbar);
|
||||
|
||||
window.shouldPreserve = true;
|
||||
document.pageform.action = "save";
|
||||
document.pageform.submit();
|
||||
|
||||
refreshMailbox();
|
||||
if (window.opener && window.open && !window.closed)
|
||||
window.opener.refreshFolderByType('draft');
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -355,13 +352,13 @@ function onMailEditorClose(event) {
|
||||
if (window.shouldPreserve)
|
||||
window.shouldPreserve = false;
|
||||
else {
|
||||
var url = "" + window.location;
|
||||
var parts = url.split("/");
|
||||
parts[parts.length-1] = "delete";
|
||||
url = parts.join("/");
|
||||
http = createHTTPClient();
|
||||
http.open("POST", url, false /* not async */);
|
||||
http.send("");
|
||||
if (window.opener && window.opener.open && !window.opener.closed) {
|
||||
var url = "" + window.location;
|
||||
var parts = url.split("/");
|
||||
parts[parts.length-1] = "delete";
|
||||
url = parts.join("/");
|
||||
window.opener.deleteDraft(url);
|
||||
}
|
||||
}
|
||||
|
||||
Event.stopObserving(window, "beforeunload", onMailEditorClose);
|
||||
|
||||
Reference in New Issue
Block a user