From ab4e67a786c733bfa9d1c923bcfc8e4b17b70dc6 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 26 Feb 2013 17:39:20 +0100 Subject: [PATCH] [FIX] set login-mode on time bzr revid: fme@openerp.com-20130226163920-7m4ye86xv1c06owo --- addons/auth_signup/static/src/js/auth_signup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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' }); } }); },