[FIX] mail: add return false on read and vote js function for disable link after load function

bzr revid: chm@openerp.com-20121112082714-ih2zuw0k4wjti23e
This commit is contained in:
Christophe Matthieu 2012-11-12 09:27:14 +01:00
parent 4481b53897
commit 8098113cb9
1 changed files with 3 additions and 1 deletions

View File

@ -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;