From 36ccf49eb80ef724a2605a1bb91d1783cc9fd0c4 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 26 Jul 2011 22:08:30 +0800 Subject: [PATCH] Pman.Login.js --- Pman.Login.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Pman.Login.js b/Pman.Login.js index 5834e9b5..33571c2d 100644 --- a/Pman.Login.js +++ b/Pman.Login.js @@ -301,10 +301,9 @@ Pman.Login = new Roo.util.Observable({ //act.result.errorMsg// invalid form element list... Pman.Login.dialog.el.unmask(); - Roo.MessageBox.alert("Error", - act.result.errorMsg ? act.result.errorMsg : - "Login failed - communication error - try again." - ); + var msg = act.result.errorMsg || act.result.message; + msg = msg || "Login failed - communication error - try again."; + Roo.MessageBox.alert("Error", , msg); }, actioncomplete: function(re, act) { -- 2.39.2