[IMP] auth_oauth: make js code more robust
bzr revid: rco@openerp.com-20121128092821-2pig86cyknkgkai5
This commit is contained in:
@@ -33,7 +33,9 @@ openerp.auth_oauth = function(instance) {
|
||||
this.$(".oe_login_pane form ul").after(buttons);
|
||||
},
|
||||
on_oauth_sign_in: function(ev) {
|
||||
ev.preventDefault();
|
||||
if (ev) {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user