diff options
| author | Fabien Meghazi <fme@openerp.com> | 2013-02-26 17:39:41 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2013-02-26 17:39:41 +0100 |
| commit | 790262cbe4a23ec012932913aaf16c3ba0ee1475 (patch) | |
| tree | bba4614dc96cb178703142ddcfb92924f4c0ee39 /addons/auth_signup/static | |
| parent | ab4e67a786c733bfa9d1c923bcfc8e4b17b70dc6 (diff) | |
[FIX] Bad usage of deferreds
bzr revid: fme@openerp.com-20130226163941-fky6s1zwrvavf8f6
Diffstat (limited to 'addons/auth_signup/static')
| -rw-r--r-- | addons/auth_signup/static/src/js/auth_signup.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/auth_signup/static/src/js/auth_signup.js b/addons/auth_signup/static/src/js/auth_signup.js index 0ce7f04e590..82e0806ab14 100644 --- a/addons/auth_signup/static/src/js/auth_signup.js +++ b/addons/auth_signup/static/src/js/auth_signup.js @@ -163,10 +163,10 @@ openerp.auth_signup = function(instance) { var login = this.$("form input[name=login]").val(); if (!db) { this.do_warn(_t("Login"), _t("No database selected !")); - return $.Deferred.reject(); + return $.Deferred().reject(); } else if (!login) { this.do_warn(_t("Login"), _t("Please enter a username or email address.")); - return $.Deferred.reject(); + return $.Deferred().reject(); } return self.rpc("/auth_signup/reset_password", { dbname: db, login: login }).done(function(result) { self.show_error(_t("An email has been sent with credentials to reset your password")); |
