From d132b0d4b0de0fc5619ed871cb1ae05e99f10214 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Wed, 28 Nov 2012 10:36:17 +0100 Subject: [PATCH] [FIX] auth_oauth: revert not-so-smart change bzr revid: rco@openerp.com-20121128093617-gqy2zp5orckwz7nj --- addons/auth_oauth/static/src/js/auth_oauth.js | 4 +--- 1 file changed, 1 insertion(+), 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);