Fix last packet transfers shown, added file transfers
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user