mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 11:25:24 +00:00
See ChangeLog.
Monotone-Parent: 482498d8717f020bae6132b015e69ae97d3e30aa Monotone-Revision: fc82f5d2ff1a83e0f7d507e8ab1bb5149bbbec24 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2012-03-13T16:17:07
This commit is contained in:
@@ -768,6 +768,7 @@ function onAddressBookExport(event) {
|
||||
window.location.href = url;
|
||||
|
||||
event.stop();
|
||||
hideMenu(document.currentPopupMenu);
|
||||
}
|
||||
|
||||
function onAddressBookImport(event) {
|
||||
@@ -1480,19 +1481,19 @@ function configureDraggables() {
|
||||
Draggables.empty();
|
||||
|
||||
if (mainElement == null) {
|
||||
mainElement = new Element ("div", {id: "dragDropVisual"});
|
||||
mainElement = new Element("div", {id: "dragDropVisual"});
|
||||
document.body.appendChild(mainElement);
|
||||
mainElement.absolutize();
|
||||
}
|
||||
mainElement.hide();
|
||||
|
||||
new Draggable ("dragDropVisual",
|
||||
{ handle: "contactsList",
|
||||
onStart: startDragging,
|
||||
onEnd: stopDragging,
|
||||
onDrag: whileDragging,
|
||||
scroll: window
|
||||
});
|
||||
new Draggable("dragDropVisual",
|
||||
{ handle: "contactsList",
|
||||
onStart: startDragging,
|
||||
onEnd: stopDragging,
|
||||
onDrag: whileDragging,
|
||||
scroll: window,
|
||||
delay: 250 });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1523,7 +1524,8 @@ function startDragging (itm, e) {
|
||||
var target = Event.element(e);
|
||||
if (target.up().up().tagName != "TBODY")
|
||||
return false;
|
||||
|
||||
|
||||
$("contactsListContent").setStyle({ overflow: "visible" });
|
||||
var handle = $("dragDropVisual");
|
||||
var contacts = $('contactsList').getSelectedRowsId();
|
||||
var count = contacts.length;
|
||||
@@ -1551,6 +1553,7 @@ function whileDragging (itm, e) {
|
||||
}
|
||||
|
||||
function stopDragging () {
|
||||
$("contactsListContent").setStyle({ overflow: "auto" });
|
||||
var handle = $("dragDropVisual");
|
||||
handle.hide();
|
||||
if (handle.hasClassName ("copy"))
|
||||
|
||||
Reference in New Issue
Block a user