summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/data.js
diff options
context:
space:
mode:
authorMohammed Shekha <msh@openerp.com>2013-06-06 12:26:30 +0530
committerMohammed Shekha <msh@openerp.com>2013-06-06 12:26:30 +0530
commit2b65ba1f64669efe2ec6362a18f26a2a1a7d08aa (patch)
treeb50e90e7c32e975f57abbd727d451a6e63637db9 /addons/web/static/src/js/data.js
parentd72773015e60be3ba0bbe1dd43997019611f2505 (diff)
parentd8dd8fc14bda8e3888a1580b9e344754b862f558 (diff)
[FIX]Refixed the issue of resequence, added id at specified index in dataset.
bzr revid: msh@openerp.com-20130606065630-r536yqlcq0wihs8l
Diffstat (limited to 'addons/web/static/src/js/data.js')
-rw-r--r--addons/web/static/src/js/data.js4
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..44567c7ff43 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 self = this;
+ _.each(ids, function(id){ self.ids.splice(at, 0, id); });
+ },
/**
* Resequence records.
*