This commit is contained in:
Andrew Bauer 2020-09-13 08:33:47 -05:00
parent 1599bc4c14
commit 951afc669f
1 changed files with 7 additions and 5 deletions

View File

@ -29,11 +29,13 @@ function processClicks(event, field, value, row, $element) {
function detailFormatter(index, row, $detail) { function detailFormatter(index, row, $detail) {
$detail.html('Please wait. Loading from ajax request...'); $detail.html('Please wait. Loading from ajax request...');
$j.get(thisUrl + '?request=stats&eid=' + row.EventId + '&fid=' + row.FrameId + '&row=' + index) $j.get(thisUrl + '?request=stats&eid=' + row.EventId + '&fid=' + row.FrameId + '&row=' + index)
.done(function(data){ $detail.html(data.html) }) .done(function(data) {
.fail(function(jqxhr, textStatus, error) { $detail.html(data.html)
console.log("Request Failed: " + textStatus + ", " + error); })
console.log("Response Text: " + jqxhr.responseText); .fail(function(jqxhr, textStatus, error) {
}); console.log("Request Failed: " + textStatus + ", " + error);
console.log("Response Text: " + jqxhr.responseText);
});
} }
function initPage() { function initPage() {
var backBtn = $j('#backBtn'); var backBtn = $j('#backBtn');