Enhance search filter UI for JS disabled users
Change filters UI box to use <details>. Stylize detail button for filter ui Fix localization for 'filter' Fix CSS Fix stylingpull/1837/head
parent
489d0151ad
commit
83b5fd252e
@ -1,13 +0,0 @@
|
|||||||
function toggle_comments(event) {
|
|
||||||
var target = event.target;
|
|
||||||
var body = document.getElementById('filters');
|
|
||||||
if (body.style.display === 'flex') {
|
|
||||||
target.innerHTML = '[ + ]';
|
|
||||||
body.style.display = 'none';
|
|
||||||
} else {
|
|
||||||
target.innerHTML = '[ - ]';
|
|
||||||
body.style.display = 'flex';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
document.getElementById('togglefilters').onclick = toggle_comments;
|
|
Loading…
Reference in New Issue