-
Committer:
Xavier Morel
-
Date:
2011-02-02 12:11:36 UTC
-
Revision ID:
xmo@openerp.com-20110202121136-6cmlgw7ewet0ic8p
[FIX] actually fix previous commit for real instead of crappy workaround
Bug is actually that jquery-ui's sortable will sort 'empty' table lines (which is perfectly sensible from its point of view). Just tell it to ignore them by only selecting lines with a @record for sorting (those are the non-empty lines)
Further improve by not allowing dropping on empty table lines (so we don't try to insert the only element of a list at index 5, though it doesn't bother Python)