Skip to content
Snippets Groups Projects
Commit e05e41cc authored by Xavier Morel's avatar Xavier Morel
Browse files

[IMP] restrict droppable targets

bzr revid: xmo@openerp.com-20110914153707-i4xycxgo1qdl5vtl
parent c57bb71b
Branches
Tags
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment