Skip to content

Commit 8721235

Browse files
authored
Merge pull request kevoreilly#2944 from GDATAAdvancedAnalytics/fix-behavior-style
Web improvements for behavior/api call list
2 parents 0cdbc7a + 7f804f7 commit 8721235

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

web/static/css/style.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,14 @@ a:hover {
7878
color: #62c462 !important;
7979
}
8080

81+
#top_pagination {
82+
scroll-margin-top: 75px;
83+
}
84+
8185
.page-item.active .page-link {
8286
z-index: 3;
8387
color: #fff;
84-
background-color: #ee1b2f;
88+
background-color: #ee1b2f !important;
8589
border-color: transparent;
8690
}
8791

web/templates/analysis/behavior/_processes.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@
3333
else {
3434
$("#process_" + pid + " ul.pagination").html(paginationbar(parseInt($("#process_" + pid).data("length")), pagenum));
3535
$("#process_" + pid + " ul.pagination a").click(function (e) {
36+
e.preventDefault();
3637
var t = $(e.target);
37-
load_chunk(t.parents("#process_" + pid).data("pid"), parseInt(t.text()));
38+
$(`#process_${pid} #top_pagination`)[0].scrollIntoView();
39+
load_chunk(pid, parseInt(t.text()));
3840
});
3941
typeof callback === 'function' && callback();
4042
}

web/templates/analysis/strace/_processes.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@
9696
else {
9797
$("#process_" + pid + " div.pagination ul").html(paginationbar(0, 0));
9898
$("#process_" + pid + " div.pagination a").click(function (e) {
99+
e.preventDefault();
99100
var t = $(e.target);
100-
load_chunk(t.parents("#process_" + pid).data("pid"), parseInt(t.text()));
101+
$(`#process_${pid} #top_pagination`)[0].scrollIntoView();
102+
load_chunk(pid, parseInt(t.text()));
101103
});
102104
}
103105
});

0 commit comments

Comments
 (0)