minor changes

This commit is contained in:
nicola 2025-01-28 16:28:50 +01:00
parent e64e856f30
commit c737dc0817
2 changed files with 11 additions and 3 deletions

View File

@ -689,6 +689,7 @@
</select> </select>
</div> </div>
<span class="px-2" id="spanContenenti">Contenenti:</span> <span class="px-2" id="spanContenenti">Contenenti:</span>
<div id="grammaticaEsintassi" style="display: none;"> <div id="grammaticaEsintassi" style="display: none;">
<div class="px-1 pb-0" id="cercaFrasiPeriodiDiscorsi"> <div class="px-1 pb-0" id="cercaFrasiPeriodiDiscorsi">
<div <div
@ -2021,12 +2022,12 @@
<div style="display: none;"> <div style="display: none;">
<ul> <ul>
<!-- LI CLAUSOLA --> <!-- LI CLAUSOLA -->
<li id="li-claxX1Xx" style="display: none;" <li id="li-claxX1Xx" style="display: none;"
class="claLI card mx-0 my-1 py-1 px-0 list-group-item align-items-center border text-muted bg-lida-vis"> class="claLI card mx-0 my-1 py-1 px-0 list-group-item align-items-center border text-muted bg-lida-vis">
<h3 class="text-primary " id="parentesiApertaxX1Xx" style="display: none;">(</h3>
<div class="handle container p-0 pl-1"> <div class="handle container p-0 pl-1">
<div <div
@ -2069,7 +2070,6 @@
</div> </div>
</div> </div>
<h3 class="text-primary " id="parentesiChiusaxX1Xx" style="display: none;">)<br></h3>
<div <div
class="row no-gutters flex-nowrap align-items-start justify-content-end"> class="row no-gutters flex-nowrap align-items-start justify-content-end">
<div class="col-auto flex-fill align-self-start"></div> <div class="col-auto flex-fill align-self-start"></div>

View File

@ -68,6 +68,7 @@ $(document).ready(function() {
setStyle(newStyle); setStyle(newStyle);
}); });
$('#btnParentesi').on('click', function() { $('#btnParentesi').on('click', function() {
var fava = $("#parentesiAperta1");
$("#parentesiAperta1").attr('style', "display: d-flex;"); $("#parentesiAperta1").attr('style', "display: d-flex;");
$("#parentesiChiusa2").attr('style', "display: d-flex;"); $("#parentesiChiusa2").attr('style', "display: d-flex;");
}); });
@ -165,6 +166,8 @@ $(document).ready(function() {
}); });
if (tabID == 0) { if (tabID == 0) {
tabID++; tabID++;
$('#sortable0').append('<h3 class="text-primary " id="parentesiAperta1" style="display: none;">(<br></h3>');
addGramCla("#sortable0", 1, tabID, 1); addGramCla("#sortable0", 1, tabID, 1);
}else{ }else{
refreshClaList(tabID); refreshClaList(tabID);
@ -956,6 +959,7 @@ $(document).ready(function() {
claClone.attr("data-claActive", active); claClone.attr("data-claActive", active);
claClone.attr("aria-labelledby", "cla" + tabID + "-tab"); claClone.attr("aria-labelledby", "cla" + tabID + "-tab");
claClone.attr("style", ""); claClone.attr("style", "");
$('#claBody' + tabID).append(claClone); $('#claBody' + tabID).append(claClone);
$('#cla' + tabID + " #grammtypesN").attr("id", "grammtypes_" + tabID); $('#cla' + tabID + " #grammtypesN").attr("id", "grammtypes_" + tabID);
$('#cla' + tabID + " #lemma_formaINIT").attr("id", "lemmaforma_" + tabID); $('#cla' + tabID + " #lemma_formaINIT").attr("id", "lemmaforma_" + tabID);
@ -1154,10 +1158,14 @@ $(document).ready(function() {
} }
$(sortableId).append(boolCond) $(sortableId).append(boolCond)
$(sortableId).append($(cloneLI)[0]); $(sortableId).append($(cloneLI)[0]);
if (tabID == 2){
$(sortableId).append('<h3 class="text-primary " id="parentesiChiusa2" style="display: none;">)<br></h3>');
}
if (toExpand == 1) { if (toExpand == 1) {
$("#claCollapse" + tabID).focus(); $("#claCollapse" + tabID).focus();
$("#claCollapse" + tabID).trigger("click"); $("#claCollapse" + tabID).trigger("click");
} }
$("#li-cla" + tabID).fadeTo(1000, 1); $("#li-cla" + tabID).fadeTo(1000, 1);
}; };