Fix last packet transfers shown, added file transfers

This commit is contained in:
2023-07-19 15:16:25 +10:00
parent f4fc6c24a4
commit 39605af693
8 changed files with 249 additions and 37 deletions

View File

@@ -1,3 +1,4 @@
<!-- $o=System::class -->
<div class="modal fade" id="packet-contents" tabindex="-1">
<div class="modal-dialog modal-lg modal-dialog-scrollable">
<div class="modal-content bg-dark">
@@ -34,18 +35,19 @@
data: {packet: e.target.innerText,_token: '{{csrf_token()}}'},
beforeSend: function() {
icon.toggleClass('d-none');
$('#packet-contents').find('div#modal-content').empty();
},
success: function(data) {
icon.toggleClass('d-none');
$('div#modal-content').html(data);
$('#packet-contents').find('div#modal-content').html(data);
},
error: function(e) {
icon.toggleClass('d-none');
alert('That didnt work? Please try again....');
},
url: '{{ url('packet/contents') }}/'+e.target.innerText,
url: '{{ url('packet/contents',['o'=>$o->id]) }}/'+e.target.innerText,
cache: false
})