From b46ef0c0cb3acace0fdd00efa3747af08d84370f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 26 Jul 2011 22:16:04 +0800 Subject: [PATCH] Pman.Login.js --- Pman.Login.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Pman.Login.js b/Pman.Login.js index 4adb8e02..caa822f5 100644 --- a/Pman.Login.js +++ b/Pman.Login.js @@ -450,6 +450,9 @@ Pman.Login = new Roo.util.Observable({ if (this.disabled) { return; } + + + this.callback = cb; // used for non-pman usage.. modal = modal || false; if (Pman.Login.authUserId < 0) { // logout!? @@ -480,7 +483,10 @@ Pman.Login = new Roo.util.Observable({ this.dialog.show(); this.dialog.el.unmask(); this.resizeToLogo.defer(1000,this); - + if (!Roo.state.Manager.getProvider().expires) { + Roo.state.Manager.setProvider(new Roo.state.CookieProvider()); + } + this.form.setValues({ 'username' : Roo.state.Manager.get('Pman.Login.username.'+appNameShort, ''), -- 2.39.2