Skip to content

Commit

Permalink
Refactor modal button to use Bootstrap 5 data attributes for improved…
Browse files Browse the repository at this point in the history
… compatibility
  • Loading branch information
RoodneyMoraes committed Nov 17, 2024
1 parent 3545cc5 commit fe71a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/custom-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async function carregarPagina($json, $localStorage) {
Deseja realmente reiniciar todo o progresso? Ao confirmar, o histórico de acesso aos links de cada tópico armazenado no Local Storage será excluído.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancelar</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancelar</button>
<button type="button" class="btn btn-danger" onclick="localStorage.removeItem('${localStorage}'); $('#confirmacaoModal').modal('hide'); location.reload();">Confirmar</button>
</div>
</div>
Expand Down

0 comments on commit fe71a9a

Please sign in to comment.