mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-16 11:39:41 +00:00
Some template cleanup
This commit is contained in:
@@ -27,12 +27,7 @@
|
||||
|
||||
<script>
|
||||
function parseBool(str) {
|
||||
if (str.toLowerCase() == 'true') {
|
||||
return true
|
||||
}
|
||||
else {
|
||||
return false
|
||||
}
|
||||
return str.toLowerCase() == 'true';
|
||||
}
|
||||
$('input[type=radio][name=big_power]').change(function() {
|
||||
$('#{{ form.power_mic.id_for_label }}').prop('required', parseBool(this.value));
|
||||
|
||||
Reference in New Issue
Block a user