mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-27 22:35:22 +00:00
Monotone-Parent: f477b77ceeee0f0f12bc02c70d58dc589a7d9d55
Monotone-Revision: eb759cedcd41f4bc822816acd58b93115f94f266 Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-07-07T15:26:51 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -2292,10 +2292,15 @@ function dropAction (dropped, zone, e) {
|
||||
if ($("dragDropVisual").hasClassName ("copy"))
|
||||
action = "copy";
|
||||
|
||||
dropSelectedContacts (action, destination);
|
||||
dropSelectedMessages (action, destination);
|
||||
|
||||
if (action != "copy") {
|
||||
var div = $('messageContent');
|
||||
div.innerHTML = "";
|
||||
}
|
||||
}
|
||||
|
||||
function dropSelectedContacts (action, targetMailbox) {
|
||||
function dropSelectedMessages (action, targetMailbox) {
|
||||
var messageList = $("messageList").down("TBODY");
|
||||
var rows = messageList.getSelectedNodes();
|
||||
var uids = new Array(); // message IDs
|
||||
@@ -2304,7 +2309,8 @@ function dropSelectedContacts (action, targetMailbox) {
|
||||
for (var i = 0; i < rows.length; i++) {
|
||||
var uid = rows[i].readAttribute("id").substr(4);
|
||||
var path = Mailer.currentMailbox + "/" + uid;
|
||||
rows[i].hide();
|
||||
if (action != "copy")
|
||||
rows[i].hide();
|
||||
uids.push(uid);
|
||||
paths.push(path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user