From 16b225b1895b180ac98135b7c1aa0aedb64e6423 Mon Sep 17 00:00:00 2001 From: Jordan Wright Date: Sat, 19 Mar 2016 20:51:42 -0500 Subject: [PATCH] Fixed issue where it will now stay on same page after ajax update --- static/js/app/campaign_results.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/app/campaign_results.js b/static/js/app/campaign_results.js index ebd7a5d4..ebc82a5b 100644 --- a/static/js/app/campaign_results.js +++ b/static/js/app/campaign_results.js @@ -250,7 +250,7 @@ function poll() { if (result.id == rid) { var label = statuses[result.status].label || "label-default"; rowData[6] = "" + result.status + "" - resultsTable.row(i).data(rowData).draw() + resultsTable.row(i).data(rowData).draw(false) if (row.child.isShown()) { row.child(renderTimeline(row.data())) } @@ -395,14 +395,14 @@ function load() { tr.removeClass('shown'); $(this).find("i").removeClass("fa-caret-down") $(this).find("i").addClass("fa-caret-right") - row.invalidate('dom').draw() + row.invalidate('dom').draw(false) } else { // Open this row $(this).find("i").removeClass("fa-caret-right") $(this).find("i").addClass("fa-caret-down") row.child(renderTimeline(row.data())).show(); tr.addClass('shown'); - row.invalidate('dom').draw() + row.invalidate('dom').draw(false) } }); // Setup the graphs