[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Login triggers only one message (fixes #1204)

git at icinga.org git at icinga.org
Sun Mar 20 11:26:09 CET 2011


Module: icinga-web
Branch: jmosshammer/default
Commit: 2c5b8bb612c481fd4b55e57bb81627f3bcabfd40
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=2c5b8bb612c481fd4b55e57bb81627f3bcabfd40

Author: Marius Hein <marius.hein at netways.de>
Date:   Fri Feb 11 15:38:27 2011 +0100

* Login triggers only one message (fixes #1204)

---

 app/modules/AppKit/lib/js/AppKitErrorHandler.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/app/modules/AppKit/lib/js/AppKitErrorHandler.js b/app/modules/AppKit/lib/js/AppKitErrorHandler.js
index 9cca861..6866e05 100644
--- a/app/modules/AppKit/lib/js/AppKitErrorHandler.js
+++ b/app/modules/AppKit/lib/js/AppKitErrorHandler.js
@@ -281,6 +281,8 @@ Ext.ns("AppKit.errorHandler");
 			switch(response.status) {	
 				case 200:
 					break;
+				case 403:
+					break;
 				case 404:
 					AppKit.AjaxErrorHandler.error_404(proxy.url);
 					break;
@@ -334,6 +336,7 @@ Ext.ns("AppKit.errorHandler");
 				}
 				if(!error)
 					error = "Unkown error";
+					AppKit.log(error, target);
 				trackError(_("A error occured when requesting ")+target);//+" : "+error.length <200 ? error: error.substr(0,200)+"...");
 			}
 		}





More information about the icinga-checkins mailing list