-FolderDDropControler.prototype._updateCBIndex = function() {
- var cbs = this.listing.getElementsByTagName('INPUT');
- var index = 0;
- var cb;
- this.checkboxes = [];
- for (var i=0 ; i < cbs.length ; i++) {
- cb = cbs[i];
- if (cb.type === 'checkbox') {
- cb.position = index++;
- this.checkboxes[cb.position] = cb;
- }
+FolderDDropControler.prototype._updatePositions = function() {
+ var rows = this.listing.getElementsByTagName("TR");
+ var i, row;
+ for (i=0 ; i < rows.length ; i++ ) {
+ row = rows[i];
+ row.pos = i + this.firstItemPos;
+ if (i % 2 === 0) {
+ row.className = "even"; }
+ else {
+ row.className = "odd"; }