summaryrefslogtreecommitdiff
path: root/addons/auth_oauth/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/auth_oauth/static/src')
-rw-r--r--addons/auth_oauth/static/src/js/auth_oauth.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/auth_oauth/static/src/js/auth_oauth.js b/addons/auth_oauth/static/src/js/auth_oauth.js
index 5c80d29f4e9..15683cfac2a 100644
--- a/addons/auth_oauth/static/src/js/auth_oauth.js
+++ b/addons/auth_oauth/static/src/js/auth_oauth.js
@@ -12,7 +12,7 @@ openerp.auth_oauth = function(instance) {
} else if(this.params.oauth_error === 2) {
this.do_warn("Authentication error","");
}
- return d.then(this.do_oauth_load).fail(function() {
+ return d.done(this.do_oauth_load).fail(function() {
self.do_oauth_load([]);
});
},
@@ -23,7 +23,7 @@ openerp.auth_oauth = function(instance) {
do_oauth_load: function() {
var db = this.$("form [name=db]").val();
if (db) {
- this.rpc("/auth_oauth/list_providers", { dbname: db }).then(this.on_oauth_loaded);
+ this.rpc("/auth_oauth/list_providers", { dbname: db }).done(this.on_oauth_loaded);
}
},
on_oauth_loaded: function(result) {