diff options
| author | Raphael Collet <rco@openerp.com> | 2012-11-28 11:53:42 +0100 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2012-11-28 11:53:42 +0100 |
| commit | 71639ff39399cf5f2242c9b04499fe629767b3e8 (patch) | |
| tree | e884da0e393b5816c2ac14927c7fc290ab821b5b /addons/auth_oauth/static/src | |
| parent | b194e225f11b1f23f63b58ff767efa6df95caf8a (diff) | |
[IMP] auth_oauth: factor js method to make it reusable
bzr revid: rco@openerp.com-20121128105342-2djfotkdvzpcbsgb
Diffstat (limited to 'addons/auth_oauth/static/src')
| -rw-r--r-- | addons/auth_oauth/static/src/js/auth_oauth.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/auth_oauth/static/src/js/auth_oauth.js b/addons/auth_oauth/static/src/js/auth_oauth.js index fdf7baf607c..c24dab3d55a 100644 --- a/addons/auth_oauth/static/src/js/auth_oauth.js +++ b/addons/auth_oauth/static/src/js/auth_oauth.js @@ -36,6 +36,9 @@ openerp.auth_oauth = function(instance) { ev.preventDefault(); var index = $(ev.target).data('index'); var provider = this.oauth_providers[index]; + return this.do_oauth_sign_in(provider); + }, + do_oauth_sign_in: function(provider) { var return_url = _.str.sprintf('%s//%s/auth_oauth/signin', location.protocol, location.host); if (instance.session.debug) { return_url += '?debug'; |
