Skip to content

Commit

Permalink
fix collapse group (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
cle-b authored Jan 6, 2025
1 parent e283766 commit b1908de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion httpdbg/webapp/static/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function update_collapse_group() {
}

for (let group_id of global.group_collapse) {
sheet.insertRule('[data-group="' + group_id + '"] {display: none;}');
sheet.insertRule('[data-groupby="' + group_id + '"] {display: none;}');
}
}

Expand Down
1 change: 1 addition & 0 deletions httpdbg/webapp/static/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ <h5>Request panel</h5>
<tr id="request-{{id}}"
data-filter="{{filter}}"
data-group="{{group_id}}"
data-groupby="{{groupby_id}}"
data-orderby="{{tbegin}}"
onclick="select_request(arguments[0], '{{id}}')"
onkeypress="shortcut_request(event, '{{id}}')"
Expand Down
2 changes: 2 additions & 0 deletions httpdbg/webapp/static/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ async function refresh_resquests() {

let groupby = get_groupby(global.groupby, request);

request.groupby_id = groupby.id;

var rendered = Mustache.render(template_request, request);
if (!elt) {
var elt_group = document.getElementById("group-" + groupby.id);
Expand Down

0 comments on commit b1908de

Please sign in to comment.