Cambiato nome tab, fixed typo

This commit is contained in:
Luca Trupiano 2023-04-18 17:36:03 +02:00
parent cf45de06a5
commit f29991f4d0
2 changed files with 10 additions and 14 deletions

View File

@ -468,22 +468,22 @@
<div class="d-table-cell p-0 pt-1" style="background-color: rgba(0,0,0,.03);">
<ul class="nav nav-tabs" id="tab-list" role="tablist">
<li class="nav-item" role="presentation">
<a class="nav-link py-1 active" id="vis1-tab" data-toggle="tab" href="#vis1" role="tab" aria-controls="vis1" aria-selected="true"><span class=" btn-link"><ion-icon name="create"></ion-icon></span>
<span class="h6 btn-link"> Annotazioni</span></a>
<a class="nav-link py-1 active" id="vis0-tab" data-toggle="tab" href="#vis0" role="tab" aria-controls="vis0" aria-selected="true"><span class=" btn-link"><ion-icon name="create"></ion-icon></span>
<span class="h6 btn-link"> Commenti</span></a>
</li>
<li class="nav-item" role="presentation">
<a class="nav-link py-1" id="vis0-tab" data-toggle="tab" href="#vis0" role="tab" aria-controls="vis0" aria-selected="true"><span class=" btn-link"><ion-icon name="analytics"></ion-icon></span>
<a class="nav-link py-1" id="vis1-tab" data-toggle="tab" href="#vis1" role="tab" aria-controls="vis1" aria-selected="true"><span class=" btn-link"><ion-icon name="analytics"></ion-icon></span>
<span class="h6 btn-link"> Periodo</span></a>
</li>
</ul>
<div class="tab-content visInfo w-100 d-flex bg-lida-vis" id="vis-TabContent" style="flex-direction: column;">
<div class="tab-pane fade show active p-0 bg-lida-vis" id="vis1" role="tabpanel" aria-labelledby="vis1-tab">
<div id='displaynote' class="pt-3 px-3">Visualizza annotazioni<br>
<div class="tab-pane fade show active p-0 bg-lida-vis" id="vis0" role="tabpanel" aria-labelledby="vis0-tab">
<div id='displaynote' class="pt-3 px-3">Visualizza commenti<br>
</div>
</div>
<div class="tab-pane fade p-0 bg-lida-vis" id="vis0" role="tabpanel" aria-labelledby="vis0-tab">
<div id='displayinfo' class="pt-3 px-3">Visualizza info periodo<br>
<div class="tab-pane fade p-0 bg-lida-vis" id="vis1" role="tabpanel" aria-labelledby="vis1-tab">
<div id='displayinfo' class="pt-3 px-3">Visualizza struttura periodo<br>
</div>
</div>
</div>

View File

@ -242,11 +242,9 @@ $(document).ready(function() {
var claListItemId = $(this).closest('li').attr('id');
var claIdNum = claListItemId.substr(6);
claListLen--;
//$("#" + claListItemId)[0].remove();
$("#" + claListItemId).fadeOut('fast',
function(){
$("#" + claListItemId)[0].remove();
$("#" + claListItemId)[0].remove();
delete queryJson["Clausola" + claIdNum];
delete window["context" + claIdNum];
refreshClaList();
@ -256,19 +254,17 @@ $(document).ready(function() {
// Evento: click sull'icona rimuovi condizione
$('#sortable0').on('click', '.removeCond', function() {
//$(this).closest('ul').parent().remove();
var here = this;
$(this).closest('ul').parent().fadeOut('fast',
function(here){
$(here).closest('ul').parent().remove();
$(here).closest('ul').parent().remove();
condListLen--;
refreshClaList();
refreshSortables();
refreshConnectWith();
if (claListLen == 0 && condListLen == 0) {
$('#sortable0').html(emptyClaList);
}
};
});
});