[FIX] auth_oauth: stupid mistake, using 'self' instead of 'this'...

bzr revid: rco@openerp.com-20121127153040-aol52i523ysabah8
This commit is contained in:
Raphael Collet 2012-11-27 16:30:40 +01:00
parent a50bc125f8
commit 22f30bc8dc
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ openerp.auth_oauth = function(instance) {
if (instance.session.debug) {
return_url += '?debug';
}
var state = self._oauth_state();
var state = this._oauth_state();
var params = {
response_type: 'token',
client_id: provider.client_id,
@ -53,7 +53,7 @@ openerp.auth_oauth = function(instance) {
},
_oauth_state: function(provider) {
// return the state object sent back with the redirected uri
var dbname = self.$("form [name=db]").val();
var dbname = this.$("form [name=db]").val();
return {
d: dbname,
p: provider.id,