[FIX] set login-mode on time
bzr revid: fme@openerp.com-20130226163920-7m4ye86xv1c06owo
This commit is contained in:
parent
977eaed2c8
commit
ab4e67a786
|
@ -24,7 +24,6 @@ openerp.auth_signup = function(instance) {
|
||||||
},
|
},
|
||||||
start: function() {
|
start: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.set({ 'login-mode': 'default' });
|
|
||||||
return this._super().then(function() {
|
return this._super().then(function() {
|
||||||
// to switch between the signup and regular login form
|
// to switch between the signup and regular login form
|
||||||
self.$('a.oe_signup_signup').click(function(ev) {
|
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.rpc("/auth_signup/get_config", {dbname: dbname}).done(function(result) {
|
||||||
self.signup_enabled = result.signup;
|
self.signup_enabled = result.signup;
|
||||||
self.reset_password_enabled = result.reset_password;
|
self.reset_password_enabled = result.reset_password;
|
||||||
|
self.set({ 'login-mode': 'default' });
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
// TODO: support multiple database mode
|
||||||
|
this.set({ 'login-mode': 'default' });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue