11 lines
481 B
JavaScript
11 lines
481 B
JavaScript
document.addEventListener('DOMContentLoaded', function() {
|
|
// Configurar clique nos itens da lista de comprovantes
|
|
document.querySelectorAll('.list-group-item[onclick*="carregarDadosComprovante"]').forEach(item => {
|
|
item.addEventListener('click', function(e) {
|
|
const comprovanteId = this.getAttribute('data-comprovante-id');
|
|
if (comprovanteId) {
|
|
carregarDadosComprovante(comprovanteId);
|
|
}
|
|
});
|
|
});
|
|
});
|