See ChangeLog.

Monotone-Parent: 127d7e0f27ce8654d56f5744a2db77f6e533bf38
Monotone-Revision: baa6f9af328e12270813b11beac4250ab90005b0

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-01-30T00:51:17
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Francis Lachapelle 2011-01-30 00:51:17 +00:00
parent 44e560938d
commit 7f90b060a7
3 changed files with 22 additions and 3 deletions

View File

@ -1,6 +1,13 @@
2011-02-01 Francis Lachapelle <flachapelle@inverse.ca>
* SoObjects/Mailer/SOGoSieveConverter.m (_extractSieveAction:):
* UI/WebServerResources/scriptaculous/dragdrop.js (-updateDrag:):
fixed JavaScript error with Offset object. This object is now
casted as an array.
* UI/WebServerResources/MailerUI.js (-startDragging): improved
behavior of drag and drop.
* SoObjects/Mailer/SOGoSieveConverter.m (-_extractSieveAction:):
now encodes the mailbox name for IMAP.
2011-01-28 Francis Lachapelle <flachapelle@inverse.ca>

View File

@ -2801,8 +2801,20 @@ function startDragging (itm, e) {
if (target.up('TBODY') == undefined)
return;
if (target.tagName != 'TD')
target = target.up('TD');
var row = target.up('TR');
var handle = $("dragDropVisual");
var count = $("messageListBody").getSelectedRowsId().length;
var selectedIds = $("messageListBody").getSelectedRowsId();
var count = selectedIds.length;
var rowId = row.id;
if (count == 0 || selectedIds.indexOf(rowId) < 0) {
onRowClick(e, target);
selectedIds = $("messageListBody").getSelectedRowsId();
count = selectedIds.length;
}
handle.update(count);
if (Mailer.currentMailbox) {

View File

@ -388,7 +388,7 @@ var Draggable = Class.create({
p = [ left, top, left+width, top+height ];
}
} else {
p = Position.page(this.options.scroll);
p = Position.page(this.options.scroll).toArray();
p[0] += this.options.scroll.scrollLeft + Position.deltaX;
p[1] += this.options.scroll.scrollTop + Position.deltaY;
p.push(p[0]+this.options.scroll.offsetWidth);