[FIX] weird offset bug I completely missed in listview d&d
bzr revid: xmo@openerp.com-20110914154608-gkyh0n74xejryxmr
This commit is contained in:
@@ -1169,7 +1169,7 @@ openerp.web.ListView.Groups = openerp.web.Class.extend( /** @lends openerp.web.L
|
||||
target_id = ui.item.prev().data('id');
|
||||
|
||||
list.records.remove(to_move);
|
||||
var to = target_id ? list.records.indexOf(list.records.get(target_id)) : 0;
|
||||
var to = target_id ? list.records.indexOf(list.records.get(target_id)) + 1 : 0;
|
||||
list.records.add(to_move, { at: to });
|
||||
|
||||
// resequencing time!
|
||||
|
||||
Reference in New Issue
Block a user