Fixed FELIX-3433 WebConsole default ajax error handlers doesn't work with IE
https://issues.apache.org/jira/browse/FELIX-3433

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1309400 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/resources/res/lib/support.js b/webconsole/src/main/resources/res/lib/support.js
index 460a3b5..57f94f7 100644
--- a/webconsole/src/main/resources/res/lib/support.js
+++ b/webconsole/src/main/resources/res/lib/support.js
@@ -70,10 +70,16 @@
 	);
 
 	// register global ajax error handler
-	$(document).ajaxError( function(event, req) {
-		var text = req.responseXML ? x = req.responseXML :
-				(req.responseText ? x = req.responseText : req.statusText);
-		Xalert('The request failed: <br/><pre>' + text + '</pre>', 'AJAX Error');
+	$(document).ajaxError( function(xevent, req) {
+		var _t = '';
+		if (req.responseText) {
+			_t = req.responseText;
+		} else if (req.statusText) {
+			_t = req.statusText;
+		} else if (req.responseXML) {
+			_t = req.responseXML;
+		}
+		Xalert('The request failed: <br/><pre>' + _t + '</pre>', 'AJAX Error');
 	});
 
 	initStaticWidgets();