diff options
| author | Fabien Meghazi <fme@openerp.com> | 2013-02-26 17:39:20 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2013-02-26 17:39:20 +0100 |
| commit | ab4e67a786c733bfa9d1c923bcfc8e4b17b70dc6 (patch) | |
| tree | 3eb805c2d2eebc87adea618ae4d175e4e4dec28d /addons/auth_signup/static/src/js/auth_signup.js | |
| parent | 977eaed2c852bbe9aa6c60cc8a36861f4967ae7d (diff) | |
[FIX] set login-mode on time
bzr revid: fme@openerp.com-20130226163920-7m4ye86xv1c06owo
Diffstat (limited to 'addons/auth_signup/static/src/js/auth_signup.js')
| -rw-r--r-- | addons/auth_signup/static/src/js/auth_signup.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/auth_signup/static/src/js/auth_signup.js b/addons/auth_signup/static/src/js/auth_signup.js index 4303ea5b6cf..0ce7f04e590 100644 --- a/addons/auth_signup/static/src/js/auth_signup.js +++ b/addons/auth_signup/static/src/js/auth_signup.js @@ -24,7 +24,6 @@ openerp.auth_signup = function(instance) { }, start: function() { var self = this; - this.set({ 'login-mode': 'default' }); return this._super().then(function() { // to switch between the signup and regular login form self.$('a.oe_signup_signup').click(function(ev) { @@ -63,7 +62,11 @@ openerp.auth_signup = function(instance) { self.rpc("/auth_signup/get_config", {dbname: dbname}).done(function(result) { self.signup_enabled = result.signup; self.reset_password_enabled = result.reset_password; + self.set({ 'login-mode': 'default' }); }); + } else { + // TODO: support multiple database mode + this.set({ 'login-mode': 'default' }); } }); }, |
