|
From: <tob...@us...> - 2014-04-21 21:04:56
|
Revision: 8134
http://sourceforge.net/p/bigdata/code/8134
Author: tobycraig
Date: 2014-04-21 21:04:52 +0000 (Mon, 21 Apr 2014)
Log Message:
-----------
Fixed error messages not being displayed
Modified Paths:
--------------
branches/RDR/bigdata-war/src/html/js/workbench.js
Modified: branches/RDR/bigdata-war/src/html/js/workbench.js
===================================================================
--- branches/RDR/bigdata-war/src/html/js/workbench.js 2014-04-21 20:59:35 UTC (rev 8133)
+++ branches/RDR/bigdata-war/src/html/js/workbench.js 2014-04-21 21:04:52 UTC (rev 8134)
@@ -170,7 +170,7 @@
data: data,
contentType: 'application/xml',
success: function() { input.val(''); getNamespaces(); },
- error: function(jqXHR, textStatus, errorThrown) { alert(errorThrown); }
+ error: function(jqXHR, textStatus, errorThrown) { alert(jqXHR.statusText); }
};
$.ajax('/bigdata/namespace', settings);
}
@@ -435,7 +435,7 @@
function updateResponseError(jqXHR, textStatus, errorThrown) {
$('#load-response, #load-clear').show();
- $('#load-response pre').text('Error! ' + textStatus + ' ' + errorThrown);
+ $('#load-response pre').text('Error! ' + textStatus + ' ' + jqXHR.statusText);
}
@@ -536,7 +536,7 @@
});
function downloadRDFError(jqXHR, textStatus, errorThrown) {
- alert(errorThrown);
+ alert(jqXHR.statusText);
}
function exportXML(filename) {
@@ -698,7 +698,7 @@
function queryResultsError(jqXHR, textStatus, errorThrown) {
$('#query-response, #query-tab .bottom *').show();
- $('#query-response').text('Error! ' + textStatus + ' ' + errorThrown);
+ $('#query-response').text('Error! ' + textStatus + ' ' + jqXHR.statusText);
}
/* Pagination */
@@ -1000,7 +1000,7 @@
function updateExploreError(jqXHR, textStatus, errorThrown) {
$('#explore-tab .bottom').show();
$('#explore-results .box').html('').hide();
- $('#explore-header').text('Error! ' + textStatus + ' ' + errorThrown);
+ $('#explore-header').text('Error! ' + textStatus + ' ' + jqXHR.statusText);
$('#explore-results, #explore-header').show();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|