projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb47a9b
)
[FIX] null >= 0 is true...
author
Xavier Morel
<xmo@openerp.com>
Mon, 14 Oct 2013 15:57:09 +0000
(17:57 +0200)
committer
Xavier Morel
<xmo@openerp.com>
Mon, 14 Oct 2013 15:57:09 +0000
(17:57 +0200)
bzr revid: xmo@openerp.com-
20131014155709
-9cg4bzof02bhtyts
addons/web/static/src/js/view_list.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/view_list.js
b/addons/web/static/src/js/view_list.js
index
74c2fc4
..
4faf5dc
100644
(file)
--- a/
addons/web/static/src/js/view_list.js
+++ b/
addons/web/static/src/js/view_list.js
@@
-503,10
+503,14
@@
instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
var reloaded = $.Deferred();
this.$el.find('.oe_list_content').append(
this.groups.render(function () {
- if (self.dataset.index == null && self.records.length ||
- self.dataset.index >= self.records.length) {
+ if (self.dataset.index == null) {
+ if (self.records.length) {
self.dataset.index = 0;
+ }
+ } else if (self.dataset.index >= self.records.length) {
+ self.dataset.index = 0;
}
+
self.compute_aggregates();
reloaded.resolve();
}));