Skip to content

Commit

Permalink
Merge pull request #12 from Godmartinz/remove_jquery
Browse files Browse the repository at this point in the history
removes jquery and updates translation
  • Loading branch information
Godmartinz authored Mar 27, 2024
2 parents 21c3b1f + bc66c0f commit bcdda55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion resources/lang/en-US/admin/settings/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
'default_eula_text' => 'Default EULA',
'default_language' => 'Default Language',
'default_eula_help_text' => 'You can also associate custom EULAs to specific asset categories.',
'decline_message' => 'Add details to why you can\'t accept this (Optional)',
'acceptance_note' => 'Add a note for your decision (Optional)',
'display_asset_name' => 'Display Asset Name',
'display_checkout_date' => 'Display Checkout Date',
'display_eol' => 'Display EOL in table view',
Expand Down
19 changes: 1 addition & 18 deletions resources/views/account/accept/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<div class="col-md-12">
<br>
<div class="col-md-12" style="display:block;">
<label id="note_label" for="note" style="text-align:center;" >{{trans('admin/settings/general.decline_message')}}</label>
<label id="note_label" for="note" style="text-align:center;" >{{trans('admin/settings/general.acceptance_note')}}</label>
</div>
<div class="col-md-12">
<textarea id="note" name="note" rows="4" cols="50" value="note" style="width:100%" ></textarea>
Expand Down Expand Up @@ -103,24 +103,7 @@
@section('moar_scripts')

<script nonce="{{ csrf_token() }}">
$(document).ready(function(){
$('#note').hide();
$('#note_label').hide();
$('input[id="declined"]').change(function(){
if($(this).is(':checked')){
$('#note_label').show();
$('#note').show();
}
else {
$('#note_label').hide();
$('#note').hide();
}
});
});
var wrapper = document.getElementById("signature-pad"),
clearButton = wrapper.querySelector("[data-action=clear]"),
saveButton = wrapper.querySelector("[data-action=save]"),
Expand Down

0 comments on commit bcdda55

Please sign in to comment.