fix(): Ajuste na abertura de janela modal
This commit is contained in:
parent
c572bfbf5e
commit
821e9fa358
2 changed files with 4 additions and 1 deletions
|
|
@ -10,6 +10,9 @@ function modalPage(create, width, sec, title, message, color, type, func, close,
|
||||||
/** Verifica se é a criação da janela popup/modal */
|
/** Verifica se é a criação da janela popup/modal */
|
||||||
if (create === true) {
|
if (create === true) {
|
||||||
|
|
||||||
|
/** Remove o modal anterior */
|
||||||
|
$('div').remove('#modal-block');
|
||||||
|
|
||||||
var div = '';
|
var div = '';
|
||||||
var color_modal = '';
|
var color_modal = '';
|
||||||
var color_text = '';
|
var color_text = '';
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ try{
|
||||||
<td class="text-center" width="120"><?php echo $Result->category;?></td>
|
<td class="text-center" width="120"><?php echo $Result->category;?></td>
|
||||||
<td><?php echo $Result->description;?></td>
|
<td><?php echo $Result->description;?></td>
|
||||||
<td width="10">
|
<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 $i;?>)"></i></button>
|
<button class="btn btn-light btn-sm"><i class="fas fa-trash" onclick="modalPage(true, 0, 0, 'Atenção', '<b>Deseja realmente excluir o arquivo em anexo?</b>', '', 'question', funcDelete<?php echo $i;?>)"></i></button>
|
||||||
</td>
|
</td>
|
||||||
<td width="10">
|
<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>
|
<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