mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-06 22:08:51 +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:
@@ -6,6 +6,8 @@
|
||||
draggable)
|
||||
* UI/WebServerResources/MailerUI.js: Revert
|
||||
* UI/WebServerResources/ContactsUI.js: Revert
|
||||
* UI/WebServerResources/MailerUI.js: Fixed Mantis #45
|
||||
* UI/WebServerResources/ContactsUI.js: Fixed Mantis #45
|
||||
|
||||
2009-07-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
|
||||
@@ -1147,6 +1147,11 @@ function dropAction (dropped, zone, e) {
|
||||
if ($("dragDropVisual").hasClassName ("copy"))
|
||||
action = "copy";
|
||||
dropSelectedContacts (action, zone.id.substr (1));
|
||||
|
||||
if (action != "copy") {
|
||||
var div = $('contactView');
|
||||
div.innerHTML = "";
|
||||
}
|
||||
}
|
||||
|
||||
function dropSelectedContacts (action, toId) {
|
||||
|
||||
@@ -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