mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Firewall: added JS to automatically select radiobuttons in fwhosts
This commit is contained in:
committed by
Michael Tremer
parent
484269ceac
commit
5f037986b7
@@ -111,6 +111,12 @@ print<<END;
|
||||
var protocol = \$("#protocol").val();
|
||||
\$("#protocol").change(update_protocol);
|
||||
update_protocol();
|
||||
// Automatically select radio buttons when corresponding
|
||||
// dropdown menu changes.
|
||||
\$("select").change(function() {
|
||||
var id = \$(this).attr("name");
|
||||
\$('#' + id).prop("checked", true);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
END
|
||||
|
||||
Reference in New Issue
Block a user