[FIX] ListView drag&drop within parent bound.
authorVaibhav (OpenERP) <vda@tinyerp.com>
Thu, 8 Dec 2011 13:16:33 +0000 (18:46 +0530)
committerVaibhav (OpenERP) <vda@tinyerp.com>
Thu, 8 Dec 2011 13:16:33 +0000 (18:46 +0530)
bzr revid: vda@tinyerp.com-20111208131633-b7c3bd5hs3deuobd

addons/web/static/src/js/view_list.js

index f76eec7..79900a9 100644 (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'),