Skip to content

Commit

Permalink
[Ticket] add: loader on uploading files action
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo David committed May 25, 2022
1 parent 87169c1 commit e40dcea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/digiriskdolibarr.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -3472,7 +3472,7 @@
formData.append('files[]', file)
}
var ticket_id = $('#ticket_id').val()

window.eoxiaJS.loader.display($('.files-uploaded'));
fetch(document.URL + '?action=sendfile&ticket_id='+ticket_id, {
method: 'POST',
body: formData,
Expand Down
2 changes: 1 addition & 1 deletion public/ticket/create_ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@
<div id="sendFileForm">
<div id="fileLinkedTable" class="tableforinputfields">
<?php $fileLinkedList = dol_dir_list($conf->digiriskdolibarr->multidir_output[isset($conf->entity) ? $conf->entity : 1] . '/temp/ticket/' . $ticket_tmp_id . '/thumbs/'); ?>
<div class="wpeo-table table-flex table-3">
<div class="wpeo-table table-flex table-3 files-uploaded">
<?php
if ( ! empty($fileLinkedList)) {
foreach ($fileLinkedList as $fileLinked) {
Expand Down

0 comments on commit e40dcea

Please sign in to comment.