mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Improve variable names
This commit is contained in:
parent
2eaab6d9fb
commit
5c8c2ca027
|
@ -73,9 +73,9 @@
|
||||||
{{ Form::checkbox('checkin_email', '1', old('checkin_email', $item->checkin_email), ['aria-label'=>'checkin_email']) }}
|
{{ Form::checkbox('checkin_email', '1', old('checkin_email', $item->checkin_email), ['aria-label'=>'checkin_email']) }}
|
||||||
{{ trans('admin/categories/general.checkin_email') }}
|
{{ trans('admin/categories/general.checkin_email') }}
|
||||||
</label>
|
</label>
|
||||||
<div id="email_will_be_sent_message" class="callout callout-info">
|
<div id="email_will_be_sent" class="callout callout-info">
|
||||||
<i class="far fa-envelope"></i>
|
<i class="far fa-envelope"></i>
|
||||||
An email will be sent to the user because a EULA is set for this category.
|
<span>An email will be sent to the user because a EULA is set for this category.</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -119,18 +119,18 @@
|
||||||
let eula = $('textarea[name="eula_text"]');
|
let eula = $('textarea[name="eula_text"]');
|
||||||
let useDefaultEula = $('input[name="use_default_eula"]');
|
let useDefaultEula = $('input[name="use_default_eula"]');
|
||||||
let shouldSendEmail = $('input[name="checkin_email"]')
|
let shouldSendEmail = $('input[name="checkin_email"]')
|
||||||
let message = $('#email_will_be_sent_message');
|
let messageElement = $('#email_will_be_sent');
|
||||||
|
|
||||||
function handleEulaChange() {
|
function handleEulaChange() {
|
||||||
if (eula.val().trim() !== '' || useDefaultEula.is(":checked")) {
|
if (eula.val().trim() !== '' || useDefaultEula.is(":checked")) {
|
||||||
shouldSendEmail.prop('checked', true);
|
shouldSendEmail.prop('checked', true);
|
||||||
shouldSendEmail.prop('disabled', true);
|
shouldSendEmail.prop('disabled', true);
|
||||||
message.show();
|
messageElement.show();
|
||||||
eula.prop('disabled', useDefaultEula.is(":checked"));
|
eula.prop('disabled', useDefaultEula.is(":checked"));
|
||||||
} else {
|
} else {
|
||||||
shouldSendEmail.prop('checked', false);
|
shouldSendEmail.prop('checked', false);
|
||||||
shouldSendEmail.prop('disabled', false);
|
shouldSendEmail.prop('disabled', false);
|
||||||
message.hide();
|
messageElement.hide();
|
||||||
eula.prop('disabled', useDefaultEula.is(":checked"));
|
eula.prop('disabled', useDefaultEula.is(":checked"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue