[FIX] mail: chatter: undefined variable 'event' on firefox

Variable 'event' is magically defined on some browsers like chrome, but not on
firefox. Anyway, those preventDefault() were useless as they are performed
beforehand.
This commit is contained in:
Aaron Bohy
2015-11-17 15:49:43 +01:00
parent b27333919a
commit 0cd10f9af8
-2
View File
@@ -773,7 +773,6 @@ var Chatter = form_common.AbstractField.extend({
},
on_channel_redirect: function (channel_id) {
event.preventDefault();
var self = this;
var def;
var channel = chat_manager.get_channel(channel_id);
@@ -789,7 +788,6 @@ var Chatter = form_common.AbstractField.extend({
},
on_redirect: function (res_model, res_id) {
event.preventDefault();
this.do_action({
type:'ir.actions.act_window',
view_type: 'form',