summaryrefslogtreecommitdiff
path: root/addons/auth_oauth/static/src/js/auth_oauth.js
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2012-11-28 10:36:17 +0100
committerRaphael Collet <rco@openerp.com>2012-11-28 10:36:17 +0100
commitd132b0d4b0de0fc5619ed871cb1ae05e99f10214 (patch)
tree2548410705de1279faf1a4d94210af7e3c6b9d46 /addons/auth_oauth/static/src/js/auth_oauth.js
parent20627fc8e552d710ed291091727046e822e80837 (diff)
[FIX] auth_oauth: revert not-so-smart change
bzr revid: rco@openerp.com-20121128093617-gqy2zp5orckwz7nj
Diffstat (limited to 'addons/auth_oauth/static/src/js/auth_oauth.js')
-rw-r--r--addons/auth_oauth/static/src/js/auth_oauth.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/auth_oauth/static/src/js/auth_oauth.js b/addons/auth_oauth/static/src/js/auth_oauth.js
index c63a51ba83a..fdf7baf607c 100644
--- a/addons/auth_oauth/static/src/js/auth_oauth.js
+++ b/addons/auth_oauth/static/src/js/auth_oauth.js
@@ -33,9 +33,7 @@ openerp.auth_oauth = function(instance) {
this.$(".oe_login_pane form ul").after(buttons);
},
on_oauth_sign_in: function(ev) {
- if (ev) {
- ev.preventDefault();
- }
+ ev.preventDefault();
var index = $(ev.target).data('index');
var provider = this.oauth_providers[index];
var return_url = _.str.sprintf('%s//%s/auth_oauth/signin', location.protocol, location.host);