Skip to content

Commit

Permalink
Collapse filter bar before styling buttons
Browse files Browse the repository at this point in the history
If the filter bar should be collapsed, collapse it before styling the
buttons with JavaScript, so style loading doesn't seem to take as much
time and doesn't impact the location of messages as much.

Might not fix issue #15, but hopefully improves it significantly.
  • Loading branch information
etanttila committed Aug 23, 2021
1 parent 4679d06 commit 21f4e7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion feedback/static/filterbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ $(function () {
// NOTE: should we do reset here? Page rendered after back action would show form that reflects current page content.
});

$('.collapse-on-load').collapse();

$("#id_feedbackfilter_response_grade").replaceCheckboxesWithButtons();
$("#id_feedbackfilter_flags").replaceInputsWithMultiStateButtons({
multi_icon: true,
Expand Down Expand Up @@ -47,5 +49,4 @@ $(function () {
});
// $('.colortag-choice').each(django_colortag_choice);
$('#filter-form select').chosen({disable_search_threshold: 10});
$('.collapse-on-load').collapse();
});

0 comments on commit 21f4e7d

Please sign in to comment.