mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +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();
|
||||
inputCountdown.prop('required', true);
|
||||
|
||||
$('input#id_absolute_checkbox').change(function () {
|
||||
if ($(this).prop('checked')) {
|
||||
// check box enabled
|
||||
$('input#id_absolute_checkbox').change((event) => {
|
||||
if ($(event.target).prop('checked')) {
|
||||
// Checkbox is checked
|
||||
inputAbsoluteTime.parent().show();
|
||||
inputAbsoluteTime.parent().prev('label').show();
|
||||
inputCountdown.parent().hide();
|
||||
|
Loading…
x
Reference in New Issue
Block a user