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