mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-15 10:04:13 -08:00
Merge pull request #12 from Godmartinz/remove_jquery
removes jquery and updates translation
This commit is contained in:
commit
bcdda551b3
|
@ -49,7 +49,7 @@ return [
|
|||
'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',
|
||||
|
|
|
@ -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>
|
||||
|
@ -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]"),
|
||||
|
|
Loading…
Reference in a new issue