~openerp-dev/openerp-web/7.0-opw-589823-msh

« back to all changes in this revision

Viewing changes to addons/web/static/src/js/data.js

  • Committer: Xavier Morel
  • Date: 2013-06-07 12:03:55 UTC
  • mfrom: (3946.1.1 7.0)
  • Revision ID: xmo@openerp.com-20130607120355-x3poxy2ar2bpqqvw
[IMP] correctly reinsert ids into dataset when moving them around in the list view

Show diffs side-by-side

added added

removed removed

Lines of Context:
625
625
    remove_ids: function (ids) {
626
626
        this.alter_ids(_(this.ids).difference(ids));
627
627
    },
 
628
    add_ids: function(ids, at) {
 
629
        var args = [at, 0].concat(ids);
 
630
        this.ids.splice.apply(this.ids, args);
 
631
    },
628
632
    /**
629
633
     * Resequence records.
630
634
     *