fix(): Ajuste na abertura de janela modal
This commit is contained in:
parent
821e9fa358
commit
50556ff2f3
1 changed files with 5 additions and 2 deletions
|
|
@ -10,8 +10,11 @@ function modalPage(create, width, sec, title, message, color, type, func, close,
|
|||
/** Verifica se é a criação da janela popup/modal */
|
||||
if (create === true) {
|
||||
|
||||
/** Remove o modal anterior */
|
||||
$('div').remove('#modal-block');
|
||||
// Obtém a div pelo ID
|
||||
const div = document.getElementById('modal-block');
|
||||
|
||||
// Remove o elemento do DOM
|
||||
div.remove();
|
||||
|
||||
var div = '';
|
||||
var color_modal = '';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue