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); $("#copiaQuery").prop("disabled", true);
$('#collapseLogic').on('hidden.bs.collapse', function () { $('#collapseLogic').on('hidden.bs.collapse', function (e) {
$("#showLogic").html('<span class="small">Mostra pannello</span>'); if (e.target.id == "collapseLogic") {
$("#collapseAdvanced").collapse('hide'); $("#showLogic").html('<span class="small">Mostra pannello</span>');
$("#collapseAdvanced").collapse('hide');
};
}) })
$('#collapseLogic').on('shown.bs.collapse', function () { $('#collapseLogic').on('shown.bs.collapse', function () {