summaryrefslogtreecommitdiff
path: root/addons/mail/static
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-11-17 15:42:53 +0100
committerAaron Bohy <aab@odoo.com>2015-11-17 15:49:43 +0100
commit0cd10f9af8335df65615b737855722bb6cef1d2e (patch)
tree1cf285c1fd4021aa6d397e76b93514b2907009ed /addons/mail/static
parentb27333919ad5deb464093f72554d82d080c35ed3 (diff)
[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.
Diffstat (limited to 'addons/mail/static')
-rw-r--r--addons/mail/static/src/js/chatter.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/addons/mail/static/src/js/chatter.js b/addons/mail/static/src/js/chatter.js
index d90f8c287d0..f8c9f1e032e 100644
--- a/addons/mail/static/src/js/chatter.js
+++ b/addons/mail/static/src/js/chatter.js
@@ -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',