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 */
|
/** Verifica se é a criação da janela popup/modal */
|
||||||
if (create === true) {
|
if (create === true) {
|
||||||
|
|
||||||
// Obtém a div pelo ID
|
// Remove o modal caso já exista
|
||||||
const modal = document.getElementById('modal-block');
|
document.getElementById('modal-block').remove();
|
||||||
|
|
||||||
// Remove o elemento do DOM
|
|
||||||
modal.remove();
|
|
||||||
|
|
||||||
var div = '';
|
var div = '';
|
||||||
var color_modal = '';
|
var color_modal = '';
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue