[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:
parent
4481b53897
commit
8098113cb9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue