From 8098113cb93314db91cfcfb35abe5a9b2597d324 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Mon, 12 Nov 2012 09:27:14 +0100 Subject: [PATCH] [FIX] mail: add return false on read and vote js function for disable link after load function bzr revid: chm@openerp.com-20121112082714-ih2zuw0k4wjti23e --- addons/mail/static/src/js/mail.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 0cad88a58df..9feb9b7c1d5 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -870,11 +870,13 @@ openerp.mail = function (session) { on_message_read: function (event) { event.stopPropagation(); this.on_message_read_unread(true); + return false; }, on_message_unread: function (event) { event.stopPropagation(); this.on_message_read_unread(false); + return false; }, /*The selected thread and all childs (messages/thread) became read @@ -916,7 +918,7 @@ openerp.mail = function (session) { */ on_vote: function (event) { event.stopPropagation(); - return this.ds_message.call('vote_toggle', [[this.id]]) + this.ds_message.call('vote_toggle', [[this.id]]) .then( _.bind(function (vote) { this.has_voted = vote;