mirror of
https://github.com/ae-utbm/sith.git
synced 2024-10-31 19:38:04 +00:00
pedagogy: correctly hide AP input with its label
This commit is contained in:
parent
4be99fe828
commit
11acf5897f
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user