summaryrefslogtreecommitdiff
path: root/misc/drupal.js
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-11-01 21:38:56 +0000
committerDries Buytaert <dries@buytaert.net>2008-11-01 21:38:56 +0000
commit63beb458c0c136e80c9fd8a16a81f710a41258c8 (patch)
tree891a6a94e0e15ddfb5d0a2168e9ce4383c196301 /misc/drupal.js
parentc2a4b9c19fa58274f475dadf8aaaa36fe493e594 (diff)
downloadbrdo-63beb458c0c136e80c9fd8a16a81f710a41258c8.tar.gz
brdo-63beb458c0c136e80c9fd8a16a81f710a41258c8.tar.bz2
- Patch #313902 by c960657: properly display SimpleTest errors.
Diffstat (limited to 'misc/drupal.js')
-rw-r--r--misc/drupal.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/drupal.js b/misc/drupal.js
index 157a20fea..bc76189cf 100644
--- a/misc/drupal.js
+++ b/misc/drupal.js
@@ -286,17 +286,17 @@ Drupal.getSelection = function (element) {
*/
Drupal.ahahError = function(xmlhttp, uri) {
if (xmlhttp.status == 200) {
- if (jQuery.trim($(xmlhttp.responseText).text())) {
+ if (jQuery.trim(xmlhttp.responseText)) {
var message = Drupal.t("An error occurred. \n@uri\n@text", {'@uri': uri, '@text': xmlhttp.responseText });
}
else {
- var message = Drupal.t("An error occurred. \n@uri\n(no information available).", {'@uri': uri, '@text': xmlhttp.responseText });
+ var message = Drupal.t("An error occurred. \n@uri\n(no information available).", {'@uri': uri });
}
}
else {
var message = Drupal.t("An HTTP error @status occurred. \n@uri", {'@uri': uri, '@status': xmlhttp.status });
}
- return message;
+ return message.replace(/\n/g, '<br />');;
}
// Global Killswitch on the <html> element.