pedagogy: correctly hide AP input with its label

This commit is contained in:
Antoine Bartuccio 2019-07-06 00:34:41 +02:00
parent 4be99fe828
commit 11acf5897f
Signed by: klmp200
GPG Key ID: E7245548C53F904B

View File

@ -29,7 +29,7 @@
<input type="checkbox" name="semester" id="radioAUTUMN" value="AUTUMN"><label for="radioAUTUMN">A</label> <input type="checkbox" name="semester" id="radioAUTUMN" value="AUTUMN"><label for="radioAUTUMN">A</label>
<input type="checkbox" name="semester" id="radioSPRING" value="SPRING"><label for="radioSPRING">P</label> <input type="checkbox" name="semester" id="radioSPRING" value="SPRING"><label for="radioSPRING">P</label>
<input type="checkbox" name="semester" id="radioAP" value="AUTUMN_AND_SPRING"><label for="radioAP">AP</label> <span><input type="checkbox" name="semester" id="radioAP" value="AUTUMN_AND_SPRING"><label for="radioAP">AP</label></span>
</div> </div>
<input type="text" name="json" hidden> <input type="text" name="json" hidden>
</form> </form>
@ -129,7 +129,7 @@
var spring = $("input[value='SPRING']").first(); var spring = $("input[value='SPRING']").first();
// Make autumn and spring hidden if js is enabled // Make autumn and spring hidden if js is enabled
autumn_and_spring.hide(); autumn_and_spring.parent().hide();
// Fill json field if js is enabled // Fill json field if js is enabled
$("input[name='json']").first().prop("value", "true"); $("input[name='json']").first().prop("value", "true");