Risolto attivazione subCategoria Grammaticale
This commit is contained in:
parent
f6a27cadee
commit
354fd674a7
|
@ -783,7 +783,10 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div
|
||||
class="container form-group pl-3 pr-2 mb-0 pt-1 pb-0 dettaglifiltri"
|
||||
id="dettagliGrammaticale">
|
||||
</div>
|
||||
<!-- FINE GRAMMATICALE -->
|
||||
<!-- TIPO SINTATTICO -->
|
||||
|
@ -1468,9 +1471,8 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="container form-group pl-3 pr-2 mb-0 pt-1 pb-0 dettaglifiltri"></div>
|
||||
<div class="bg-light well m-0" id="contextDivN"></div>
|
||||
|
||||
<div class="bg-light well m-0" id="contextDivN"></div>
|
||||
</div>
|
||||
<!-- Div grammatica e sintassi -->
|
||||
<div class="px-1 pb-0" id="cercaRiferimenti"
|
||||
|
|
|
@ -505,8 +505,9 @@ $(document).ready(function() {
|
|||
// Nik evento aggiunto per selezionare Categoria Grammaticale in versione prova
|
||||
$("#grammtypesN").on('change', function(e) {
|
||||
var selectedValue = $(this).val();
|
||||
var contentDiv = $(".dettaglifiltri");
|
||||
addCatgramSubcla(contentDiv, selectedValue);
|
||||
var tabPaneId = ($(this).closest('.tab-pane').attr("id"));
|
||||
var id = tabPaneId.replace("tipogrammaticale","cla");
|
||||
addCatgramSubcla(id, selectedValue);
|
||||
});
|
||||
// Evento: Submit form
|
||||
$("form").submit(function(e) {
|
||||
|
@ -808,13 +809,15 @@ $(document).ready(function() {
|
|||
$('#cla' + tabID + " #queryTextN").attr("id", "queryText" + tabID);
|
||||
$('#cla' + tabID + " #opzioni_testoN").attr("id", "opzioni_testo" + tabID);
|
||||
$('#cla' + tabID + " #contextDivN").attr("id", "contextDiv" + tabID);
|
||||
$('#cla' + tabID + " #tipogrammaticaleN").attr("id","tipogrammaticale" + tabID);
|
||||
|
||||
$("#contextDiv0").attr('style', "display: none");
|
||||
addClaContext(tabID);
|
||||
}
|
||||
|
||||
// Funzione di creazione delle subclausole grammaticali basate sul valore scelto
|
||||
function addCatgramSubcla(tabPaneId, selectedValue) {
|
||||
var dettagliBox = $("#tipogrammaticaleN" + " .dettaglifiltri");
|
||||
var dettagliBox = $("#" + tabPaneId + " .dettaglifiltri");
|
||||
dettagliBox.html("");
|
||||
if (Object.keys(categorie).includes(selectedValue)) {
|
||||
var filtro = categorie[selectedValue]
|
||||
|
|
Loading…
Reference in New Issue