Fix for DnD that can be initiate from a table header

Monotone-Parent: d849bc5a898619537552171931bf3b5141b7618a
Monotone-Revision: 13cce380f729a93828b7261702643a96f1d6f502

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-07-08T15:20:32
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle 2009-07-08 15:20:32 +00:00
parent 2020870eab
commit 8a62ea4693
2 changed files with 12 additions and 4 deletions

View file

@ -1115,6 +1115,10 @@ function containsVLF (ids) {
}
function startDragging (itm, e) {
var target = Event.element(e);
if (target.up().up().tagName != "TBODY")
return false;
var handle = $("dragDropVisual");
var contacts = $('contactsList').getSelectedRowsId();
var count = contacts.length;

View file

@ -2159,13 +2159,17 @@ function configureDragAndDrop () {
}
function startDragging (itm, e) {
var target = Event.element(e);
if (target.up().up().tagName != "TBODY")
return false;
var handle = $("dragDropVisual");
var count = $('messageList').getSelectedRowsId().length;
handle.style.display = "block";
handle.update (count);
if (e.shiftKey)
handle.addClassName ("copy");
handle.style.display = "block";
handle.update (count);
if (e.shiftKey)
handle.addClassName ("copy");
}
function whileDragging (itm, e) {