[IMP] restrict droppable targets

bzr revid: xmo@openerp.com-20110914153707-i4xycxgo1qdl5vtl
This commit is contained in:
Xavier Morel 2011-09-14 17:37:07 +02:00
parent c57bb71be1
commit e05e41ccf8
1 changed files with 2 additions and 0 deletions

View File

@ -1162,6 +1162,8 @@ openerp.web.ListView.Groups = openerp.web.Class.extend( /** @lends openerp.web.L
}
// ondrop, move relevant record & fix sequences
list.$current.sortable({
axis: 'y',
items: '> tr[data-id]',
stop: function (event, ui) {
var to_move = list.records.get(ui.item.data('id')),
target_id = ui.item.prev().data('id');