fix(): Ajuste botão de excluir arquivos
This commit is contained in:
parent
77365ff34d
commit
39e1534f95
1 changed files with 6 additions and 3 deletions
|
|
@ -139,12 +139,15 @@ try{
|
|||
$FinancialDocumentsResult = $FinancialMovements->loadFiles($financialMovementsId);
|
||||
|
||||
/** Lista os pedidos de acordo com o resultado da consulta informada */
|
||||
foreach($FinancialDocumentsResult as $FinancialDocumentsKey => $Result){ ?>
|
||||
foreach($FinancialDocumentsResult as $FinancialDocumentsKey => $Result){
|
||||
|
||||
$i++;
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
/** Carrega a função de excluir arquivos */
|
||||
let funcDelete<?php echo $i++;?> = "request('TABLE=financial_documents&ACTION=financial_documents_delete&FOLDER=action&documents_id=<?php echo $Result->documents_id;?>', '', true, '', 0, '', 'Excluindo...', 'random', 'circle', 'sm', true)";
|
||||
let funcDelete<?php echo $i;?> = "request('TABLE=financial_documents&ACTION=financial_documents_delete&FOLDER=action&documents_id=<?php echo $Result->documents_id;?>', '', true, '', 0, '', 'Excluindo...', 'random', 'circle', 'sm', true)";
|
||||
|
||||
</script>
|
||||
|
||||
|
|
@ -153,7 +156,7 @@ try{
|
|||
<td class="text-center" width="120"><?php echo $Result->category;?></td>
|
||||
<td><?php echo $Result->description;?></td>
|
||||
<td width="10">
|
||||
<button class="btn btn-light btn-sm"><i class="fas fa-trash" onclick="modalPage(true, 0, 0, 'Atenção', 'Deseja realmente excluir o arquivo em anexo?', '', 'question', funcDelete<?php echo $Result->documents_id;?>)"></i></button>
|
||||
<button class="btn btn-light btn-sm"><i class="fas fa-trash" onclick="modalPage(true, 0, 0, 'Atenção', 'Deseja realmente excluir o arquivo em anexo?', '', 'question', funcDelete<?php echo $i;?>)"></i></button>
|
||||
</td>
|
||||
<td width="10">
|
||||
<button class="btn btn-info btn-sm"><i class="fas fa-arrow-down" onclick="request('FOLDER=action&TABLE=financial_movements&ACTION=financial_movements_download_file&documents_id=<?php echo $Result->documents_id;?>', '#sendMovement', true, '', '', '', 'Preparando arquivo para download', 'blue', 'circle', 'sm', '')" ></i></button>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue