Skip to content
Snippets Groups Projects
Commit 9106d61a authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[MERGE] forward port of branch 7.0 up to 5c2fb121

parents 94eae37e 5c2fb121
Branches
Tags
No related merge requests found
......@@ -700,6 +700,13 @@ openerp.web_calendar = function(instance) {
domain: self.get_range_domain(domain, start, end),
context: context,
}).done(function(events) {
if (self.dataset.index === null) {
if (events.length) {
self.dataset.index = 0;
}
} else if (self.dataset.index >= events.length) {
self.dataset.index = events.length ? 0 : null;
}
if (self.event_source !== current_event_source) {
console.log("Consecutive ``do_search`` called. Cancelling.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment