[icinga-checkins] icinga.org: icinga-web/mhein/default: * Fixed 'clear Errors' in bug report (#fixes 2097)

git at icinga.org git at icinga.org
Mon Nov 21 17:26:43 CET 2011


Module: icinga-web
Branch: mhein/default
Commit: 200214624adae7915b74b2959f61a3f52ee74e89
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=200214624adae7915b74b2959f61a3f52ee74e89

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Mon Nov 21 13:00:07 2011 +0100

* Fixed 'clear Errors' in bug report (#fixes 2097)

---

 app/modules/AppKit/lib/js/AppKitErrorHandler.js |   16 +++++++++-------
 pub/images/icinga/bug_big.png                   |  Bin 2602 -> 827 bytes
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/app/modules/AppKit/lib/js/AppKitErrorHandler.js b/app/modules/AppKit/lib/js/AppKitErrorHandler.js
index 3ec174f..06abcd9 100755
--- a/app/modules/AppKit/lib/js/AppKitErrorHandler.js
+++ b/app/modules/AppKit/lib/js/AppKitErrorHandler.js
@@ -123,12 +123,13 @@ Ext.ns("AppKit.errorHandler");
 		}
 
 		window.onerror = handleError;
-
+        var clearErrors = function() {
+            occuredErrors = [];
+            updateErrorDisplay();
+        };
 		return {
-			clearErrors : function() {
-				occuredErrors = [];
-				updateErrorDisplay();
-			},
+			clearErrors: this.clearErrors,
+            
 			getErrors: function() {
 				return occuredErrors;
 			},
@@ -200,6 +201,7 @@ Ext.ns("AppKit.errorHandler");
 
 				});
 				var boxId = Ext.id('box_bug');
+                var _this = this;
 				var box = new Ext.Window({
 					modal:true,
 					height: 400,
@@ -236,10 +238,10 @@ Ext.ns("AppKit.errorHandler");
 						text: _('Clear errors'),
 						iconCls: 'icinga-icon-delete',
 						handler: function() {
-							AppKit.errorHandler.clearErrors()
+                            clearErrors();
 							Ext.getCmp(boxId).close();
 						},
-						scope:this
+						scope:_this
 					},{
 						text: _('Close'),
 						iconCls: 'icinga-icon-cancel',
diff --git a/pub/images/icinga/bug_big.png b/pub/images/icinga/bug_big.png
index 1629451..0451340 100644
Binary files a/pub/images/icinga/bug_big.png and b/pub/images/icinga/bug_big.png differ





More information about the icinga-checkins mailing list