[FIX] auth_oauth: revert not-so-smart change

bzr revid: rco@openerp.com-20121128093617-gqy2zp5orckwz7nj
This commit is contained in:
Raphael Collet 2012-11-28 10:36:17 +01:00
parent 20627fc8e5
commit d132b0d4b0
1 changed files with 1 additions and 3 deletions

View File

@ -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);