Toggle visibility of extra requests options/settings when not in use (#584)

This commit is contained in:
dgtlmoon
2022-05-06 23:40:32 +02:00
committed by GitHub
parent 68db20168e
commit 0f08c8dda3
4 changed files with 18 additions and 19 deletions

View File

@@ -0,0 +1,14 @@
$(document).ready(function() {
function toggle() {
if ($('input[name="fetch_backend"]:checked').val() != 'html_requests') {
$('#requests-override-options').hide();
} else {
$('#requests-override-options').show();
}
}
$('input[name="fetch_backend"]').click(function (e) {
toggle();
});
toggle();
});