summaryrefslogtreecommitdiff
path: root/addons/mail_tip/static/src/js
diff options
context:
space:
mode:
authorJulien Legros <jle@odoo.com>2014-10-01 13:39:17 +0200
committerJulien Legros <jle@odoo.com>2014-10-06 15:57:16 +0200
commit42d404e08dd577e1df0f11cc748878cfc0a6e751 (patch)
treeafd0290645c1b04f5af2846d9b639195b787b580 /addons/mail_tip/static/src/js
parent93f02c0c351c80857eca141b24126743458ec419 (diff)
[FIX] web_tip: better event handling
* Override message_fetch from mail.Thread in a dedicated limk module (mail_tip) and fire an event when the messages are loaded. This is necessary for tips on the chatter. * Override render_value form web.form.FieldStatus: Call reposition() when a FieldStatus object is done rendering. * Tip.reposition() method * Handle web bus resize event
Diffstat (limited to 'addons/mail_tip/static/src/js')
-rw-r--r--addons/mail_tip/static/src/js/mail_tip.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/addons/mail_tip/static/src/js/mail_tip.js b/addons/mail_tip/static/src/js/mail_tip.js
new file mode 100644
index 00000000000..f41c8652c34
--- /dev/null
+++ b/addons/mail_tip/static/src/js/mail_tip.js
@@ -0,0 +1,9 @@
+openerp.web_tip = function(session) {
+ session.mail.Thread.include({
+ message_fetch: function() {
+ return this._super.apply(this, arguments).done(function() {
+ openerp.web.bus.trigger('chatter_messages_fetched');
+ });
+ }
+ });
+};