[IMP] restrict drag&drop of list elements to the list itself

bzr revid: xmo@openerp.com-20111208150950-b1eip9apksztlrda
This commit is contained in:
Xavier Morel
2011-12-08 16:09:50 +01:00
+1
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'),