merge of '72951a15317b904c573f349f0cc5252a50749fd3'

and '7d5face94be8209296f29fb4baef4364387ee55a'

Monotone-Parent: 72951a15317b904c573f349f0cc5252a50749fd3
Monotone-Parent: 7d5face94be8209296f29fb4baef4364387ee55a
Monotone-Revision: ab4171905a7a07f18dc66a292c18cc539efaa4e0

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-08-12T20:40:50
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle 2011-08-12 20:40:50 +00:00
commit 8d30fb1505
3 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2011-08-12 Francis Lachapelle <flachapelle@inverse.ca>
* UI/WebServerResources/HTMLElement.js (refreshSelectionByIds):
replaced the call to the Prototype method "down" in favor to a
global access with the element ID. This fixes a multiple-message
selection issue with IE.
2011-08-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Mailer/SOGoMailObject.m: (addFlags:, removeFlags:)

View file

@ -265,7 +265,8 @@ Element.addMethods({
element = $(element);
if (element.selectedIds) {
for (var i = 0; i < element.selectedIds.length; i++) {
var e = element.down('#'+element.selectedIds[i]);
//var e = element.down('#'+element.selectedIds[i]); // buggy with IE
var e = $(element.selectedIds[i]);
if (e) {
if (!e.hasClassName('_selected'))
e.addClassName('_selected');
@ -274,7 +275,6 @@ Element.addMethods({
log ("refreshSelectionByIds Error: " + element.tagName
+ " select by ID " + element.selectedIds[i]
+ " not found (" + element.childNodes.length + " children)");
//element.selectedIds.splice(i,1);
}
}
}

View file

@ -38,7 +38,6 @@ var SOGoDataTableInterface = {
* Handle selection based on rows ID.
*/
this.body.selectRange = function(startIndex, endIndex) {
var element = $(this);
var s;
var e;
var rows;