Atualizando arquivos
This commit is contained in:
parent
b8cd92e218
commit
aa7ffe8b08
1 changed files with 2 additions and 13 deletions
15
js/main.js
15
js/main.js
|
|
@ -1700,20 +1700,9 @@ function alternarCheckboxes() {
|
|||
// Selecionados
|
||||
const selecionados = Array.from(checkboxes).filter(cb => cb.checked);
|
||||
|
||||
if (selecionados.length === 0) {
|
||||
|
||||
const collapseElement = document.getElementById('collapseBudgets');
|
||||
|
||||
// Inicializa o colapso sem auto-toggle
|
||||
const bsCollapse = new bootstrap.Collapse(collapseElement, {
|
||||
toggle: false
|
||||
});
|
||||
|
||||
// Apenas oculta ao clicar no botão
|
||||
document.getElementById('ocultarCollapse').addEventListener('click', function () {
|
||||
bsCollapse.hide();
|
||||
});
|
||||
if (selecionados.length === 0) {
|
||||
|
||||
$('#collapseBudgets').hide('slow');
|
||||
$('#btnGerarOrcamento').html('Gerar Orçamento Agrupado');
|
||||
$('#btnGerarOrcamento').removeClass('btn-danger');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue