summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/abstract_web_client.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2016-06-16 10:57:39 +0200
committerAaron Bohy <aab@odoo.com>2016-06-16 14:59:39 +0200
commitc577fccb3f939cdf012067316af6641b442acc03 (patch)
tree21ae761ac2690c6520c4cdce4b3b54f8a9c1a0c2 /addons/web/static/src/js/abstract_web_client.js
parente7256058f28e85fdc04c05d78e4897c442df7c10 (diff)
[IMP] web: webclient: listen to scroll event
and propagate events on the main bus
Diffstat (limited to 'addons/web/static/src/js/abstract_web_client.js')
-rw-r--r--addons/web/static/src/js/abstract_web_client.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/web/static/src/js/abstract_web_client.js b/addons/web/static/src/js/abstract_web_client.js
index 121ac43bdad..c3985f4cf5c 100644
--- a/addons/web/static/src/js/abstract_web_client.js
+++ b/addons/web/static/src/js/abstract_web_client.js
@@ -62,7 +62,11 @@ var WebClient = Widget.extend({
// though it has no valid session
return $.when();
}
- }).then(core.bus.trigger.bind(core.bus, 'web_client_ready'));
+ }).then(function () {
+ // Listen to 'scroll' event and propagate it on main bus
+ self.action_manager.$el.on('scroll', core.bus.trigger.bind(core.bus, 'scroll'));
+ core.bus.trigger('web_client_ready');
+ });
},
bind_events: function() {
var self = this;