felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r922575 - /felix/trunk/webconsole/src/main/resources/res/lib/support.js
Date Sat, 13 Mar 2010 14:23:50 GMT
Author: fmeschbe
Date: Sat Mar 13 14:23:50 2010
New Revision: 922575

URL: http://svn.apache.org/viewvc?rev=922575&view=rev
Log:
FELIX-2183 Apply supportjs-ajax-error.patch by Valentin Valchev (thanks)

Modified:
    felix/trunk/webconsole/src/main/resources/res/lib/support.js

Modified: felix/trunk/webconsole/src/main/resources/res/lib/support.js
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/resources/res/lib/support.js?rev=922575&r1=922574&r2=922575&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/resources/res/lib/support.js (original)
+++ felix/trunk/webconsole/src/main/resources/res/lib/support.js Sat Mar 13 14:23:50 2010
@@ -71,7 +71,9 @@ $(document).ready(function() {
 
 	// register global ajax error handler
 	$(document).ajaxError( function(event, req) {
-		Xalert('The request failed: <br/><pre>' + req.statusText + '</pre>',
'AJAX Error');
+		var text = req.responseXML ? x = req.responseXML :
+				(req.responseText ? x = req.responseText : req.statusText);
+		Xalert('The request failed: <br/><pre>' + text + '</pre>', 'AJAX Error');
 	});
 
 	initStaticWidgets();



Mime
View raw message