From a2715888c16f519d531a5aa77f0034791e330758 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Wed, 31 Oct 2012 11:31:48 +0100 Subject: [IMP] jQuery deferred API changes refactoring. Changed 'then's in 'done'/'fail' and 'pipe's in 'then' bzr revid: fme@openerp.com-20121031103148-r1slfpl2kcnajjd3 --- addons/auth_openid/static/src/js/auth_openid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/auth_openid/static/src') diff --git a/addons/auth_openid/static/src/js/auth_openid.js b/addons/auth_openid/static/src/js/auth_openid.js index 56ec5b57d3f..a8901ee80f1 100644 --- a/addons/auth_openid/static/src/js/auth_openid.js +++ b/addons/auth_openid/static/src/js/auth_openid.js @@ -69,7 +69,7 @@ instance.web.Login = instance.web.Login.extend({ _check_error: function() { var self = this; if (this.params.loginerror !== undefined) { - this.rpc('/auth_openid/login/status', {}).then(function(result) { + this.rpc('/auth_openid/login/status', {}).done(function(result) { if (_.contains(['success', 'failure'], result.status) && result.message) { self.do_warn('Invalid OpenID Login', result.message); } @@ -106,7 +106,7 @@ instance.web.Login = instance.web.Login.extend({ do_openid_login: function(db, openid_url) { var self = this; - this.rpc('/auth_openid/login/verify', {'db': db, 'url': openid_url}).then(function(result) { + this.rpc('/auth_openid/login/verify', {'db': db, 'url': openid_url}).done(function(result) { if (result.error) { self.do_warn(result.title, result.error); return; -- cgit v1.2.3