corretto bug collapsible

This commit is contained in:
Luca Trupiano 2022-12-07 13:35:45 +01:00
parent 86c874f3ae
commit d54f716913
1 changed files with 5 additions and 3 deletions

View File

@ -40,9 +40,11 @@ $(document).ready(function() {
$("#copiaQuery").prop("disabled", true);
$('#collapseLogic').on('hidden.bs.collapse', function () {
$("#showLogic").html('<span class="small">Mostra pannello</span>');
$("#collapseAdvanced").collapse('hide');
$('#collapseLogic').on('hidden.bs.collapse', function (e) {
if (e.target.id == "collapseLogic") {
$("#showLogic").html('<span class="small">Mostra pannello</span>');
$("#collapseAdvanced").collapse('hide');
};
})
$('#collapseLogic').on('shown.bs.collapse', function () {