[FIX] ListView drag&drop within parent bound.

bzr revid: vda@tinyerp.com-20111208131633-b7c3bd5hs3deuobd
This commit is contained in:
Vaibhav (OpenERP) 2011-12-08 18:46:33 +05:30
parent 54f3f38957
commit 15e9b073c6
1 changed files with 1 additions and 0 deletions

View File

@ -1279,6 +1279,7 @@ openerp.web.ListView.Groups = openerp.web.Class.extend( /** @lends openerp.web.L
list.$current.sortable({
axis: 'y',
items: '> tr[data-id]',
containment: 'parent',
stop: function (event, ui) {
var to_move = list.records.get(ui.item.data('id')),
target_id = ui.item.prev().data('id'),