diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-08-22 12:13:08 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-08-22 12:13:08 +0200 |
| commit | f4a745e3f779f9a1e18c8a17f10fc03d2b29722e (patch) | |
| tree | e2aeb4ee6056044fe4e0830fc255f4a7508a347d /addons/base/static/src | |
| parent | 885fa0ded0b7417be2fe2aad28a51f2a53ef92a8 (diff) | |
[FIX] forgot to increment index in resequencer
bzr revid: xmo@openerp.com-20110822101308-2td5peezvg6snmk7
Diffstat (limited to 'addons/base/static/src')
| -rw-r--r-- | addons/base/static/src/js/list.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/base/static/src/js/list.js b/addons/base/static/src/js/list.js index f35d5318cdc..d0ee0275c6b 100644 --- a/addons/base/static/src/js/list.js +++ b/addons/base/static/src/js/list.js @@ -1075,7 +1075,7 @@ openerp.base.ListView.Groups = openerp.base.Class.extend( /** @lends openerp.bas ui.item.parent().children().each(function (i, e) { // reset record-index accelerators on rows and even/odd var even = i%2 === 0; - $(e).data('index', i) + $(e).attr('data-index', i) .toggleClass('even', even) .toggleClass('odd', !even); }); @@ -1085,7 +1085,7 @@ openerp.base.ListView.Groups = openerp.base.Class.extend( /** @lends openerp.bas // if drag to 1st row (to = 0), start sequencing from 0 // (exclusive lower bound) seq = to ? list.records.at(to - 1).get('sequence') : 0; - while (++seq, record = list.records.at(index)) { + while (++seq, record = list.records.at(index++)) { // write are independent from one another, so we can just // launch them all at the same time and we don't really // give a fig about when they're done |
