diff options
| author | Xavier Morel <xmo@openerp.com> | 2013-06-07 14:03:55 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2013-06-07 14:03:55 +0200 |
| commit | 8d0d43b40b35019facfb12f4ee94f082771dde62 (patch) | |
| tree | 52a658872cea74b6ac70fa9b41cfffb7b66e6f42 /addons/web/static/src/js/data.js | |
| parent | aa0072b1b582f4b5534cbb20e9acdc37f10c5ecf (diff) | |
| parent | 2b65ba1f64669efe2ec6362a18f26a2a1a7d08aa (diff) | |
[IMP] correctly reinsert ids into dataset when moving them around in the list view
bzr revid: xmo@openerp.com-20130607120355-x3poxy2ar2bpqqvw
Diffstat (limited to 'addons/web/static/src/js/data.js')
| -rw-r--r-- | addons/web/static/src/js/data.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index f7dd6d2ca4f..5884336dcfe 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -625,6 +625,10 @@ instance.web.DataSet = instance.web.Class.extend(instance.web.PropertiesMixin, remove_ids: function (ids) { this.alter_ids(_(this.ids).difference(ids)); }, + add_ids: function(ids, at) { + var args = [at, 0].concat(ids); + this.ids.splice.apply(this.ids, args); + }, /** * Resequence records. * |
