mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 20:40:17 +02:00
[CHANGE] Modernize and convert to ES6+
This commit is contained in:
parent
9e47d19337
commit
21f0a96422
@ -8,9 +8,9 @@ $(document).ready(() => {
|
|||||||
inputAbsoluteTime.parent().prev('label').hide();
|
inputAbsoluteTime.parent().prev('label').hide();
|
||||||
inputCountdown.prop('required', true);
|
inputCountdown.prop('required', true);
|
||||||
|
|
||||||
$('input#id_absolute_checkbox').change(function () {
|
$('input#id_absolute_checkbox').change((event) => {
|
||||||
if ($(this).prop('checked')) {
|
if ($(event.target).prop('checked')) {
|
||||||
// check box enabled
|
// Checkbox is checked
|
||||||
inputAbsoluteTime.parent().show();
|
inputAbsoluteTime.parent().show();
|
||||||
inputAbsoluteTime.parent().prev('label').show();
|
inputAbsoluteTime.parent().prev('label').show();
|
||||||
inputCountdown.parent().hide();
|
inputCountdown.parent().hide();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user