Author: vmolotkov
Date: 2007-12-12 08:32:47 -0500 (Wed, 12 Dec 2007)
New Revision: 4770
Modified:
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
Log:
ctrl+a selection was corrected
Modified:
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
===================================================================
---
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2007-12-12
13:05:14 UTC (rev 4769)
+++
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2007-12-12
13:32:47 UTC (rev 4770)
@@ -213,6 +213,7 @@
},
selectAll : function() {
+ this.resetMarked();
var startIndex = 0;
var endIndex = this.shuttleItems.length - 1;
this.selectItemRange(startIndex, endIndex);
@@ -306,10 +307,9 @@
var rows = this.shuttleTbody.rows;
for (var i = startIndex; i <= endIndex; i++) {
rows[i].item.doSelect();
- if (this.selectedItems.indexOf(rows[i]) == -1) {
+ //if (this.selectedItems.indexOf(rows[i]) == -1) {
this.selectedItems.push(rows[i]);
- //this.getSelectItemByNode(rows[i])._selected = true;
- }
+ //}
}
this.saveState();
Show replies by date