mirror of
https://github.com/gophish/gophish
synced 2024-11-15 00:37:14 +00:00
Fixed issue where it will now stay on same page after ajax update
This commit is contained in:
parent
b10c4b3d3a
commit
16b225b189
1 changed files with 3 additions and 3 deletions
|
@ -250,7 +250,7 @@ function poll() {
|
|||
if (result.id == rid) {
|
||||
var label = statuses[result.status].label || "label-default";
|
||||
rowData[6] = "<span class=\"label " + label + "\">" + result.status + "</span>"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue