Firewall: added JS to automatically select radiobuttons in fwhosts

This commit is contained in:
Alexander Marx
2013-12-20 09:40:24 +01:00
committed by Michael Tremer
parent 484269ceac
commit 5f037986b7

View File

@@ -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