diff --git a/index_3.1.html b/index_3.1.html
index 2422ff4..047ddfc 100644
--- a/index_3.1.html
+++ b/index_3.1.html
@@ -1062,7 +1062,7 @@
@@ -1853,56 +1853,53 @@
-
- xX2Xx
+ xX2Xx
-
-
-
+
diff --git a/js/script_3.1.js b/js/script_3.1.js
index 64899dc..6e9f348 100644
--- a/js/script_3.1.js
+++ b/js/script_3.1.js
@@ -62,6 +62,26 @@ $(document).ready(function() {
$('#collapseOptions').on('shown.bs.collapse', function () {
$("#showOptions").html('Nascondi Opzioni');
})
+
+ $('.collapse').on('hide.bs.collapse', function (e) {
+ if (e.target.id.substr(0,9) == "collapseC") {
+ var claIdNum = e.target.id.substr(9);
+ $("#claCollapse" + claIdNum)[0].removeAttribute("style");
+ $("#claCollapse" + claIdNum).removeClass( "border-bottom-0" );
+ $("#claCollapse" + claIdNum).addClass( "border border-primary" );
+ e.stopPropagation();
+ };
+ })
+
+ $('.collapse').on('show.bs.collapse', function (e) {
+ if (e.target.id.substr(0,9) == "collapseC") {
+ var claIdNum = e.target.id.substr(9);
+ $("#claCollapse" + claIdNum)[0].setAttribute("style", "background-color: #dbe5f2 !important;border-color: #3d6ca9!important;border-bottom-left-radius: 0;border-bottom-right-radius: 0;");
+ $("#claCollapse" + claIdNum).removeClass( "border border-primary" );
+ $("#claCollapse" + claIdNum).addClass( "border-bottom-0" );
+ e.stopPropagation();
+ };
+ })
$('#searchToggle').on('change', function() {
if ($(this).prop('checked')) {
@@ -91,7 +111,7 @@ $(document).ready(function() {
// Inizializza selectableS e definisce le funzioni
$("#selectableS").selectable({
- filter: "td",
+ filter: ".sel-canto",
selected: function(event, ui) {
contextS[ui.selected.id.substring(0,1)][ui.selected.id.substring(2)] = 1;
},
@@ -191,7 +211,7 @@ $(document).ready(function() {
}
});
- // Evento: click sul checkbox di attivazione/disattivazione delle clausole
+ // Evento: click sul bottone di edit delle clausole
$('#cla-TabContent').on('click', '.claAct', function() {
var claListItemId = $(this).closest('li').attr('id');
var tabPanelId = "#" + claListItemId.substring(3);
@@ -302,7 +322,6 @@ $(document).ready(function() {
$('#cleanresult2').on('click', function() {
resetAdvGui();
refreshClaList();
- console.log(queryJson);
});
@@ -571,7 +590,8 @@ $(document).ready(function() {
clone.setAttribute("id","cla" + tabID);
clone.setAttribute("data-claActive", active);
clone.setAttribute("aria-labelledby","cla" + tabID + "-tab");
- clone.removeAttribute("style");
+ clone.setAttribute("style", "background-color: #dbe5f2 !important;");
+ //clone.removeAttribute("style");
$('#claBody' + tabID).append(clone);
// se non cambio l'id della select react non rileva l'evento onchange:
$('#cla' + tabID + " #grammtypesN").attr("id","grammtypes" + tabID);
@@ -700,7 +720,8 @@ $(document).ready(function() {
clone.setAttribute("id","cla" + tabID);
clone.setAttribute("data-claActive",active);
clone.setAttribute("aria-labelledby","cla" + tabID + "-tab");
- clone.removeAttribute("style");
+ clone.setAttribute("style", "background-color: #dbe5f2 !important;");
+ //clone.removeAttribute("style");
$('#claBody' + tabID).append(clone);
$('#cla' + tabID + " #lemma_formaN").attr("id","lemma_forma" + tabID);
$('#cla' + tabID + " #queryTextN").attr("id","queryText" + tabID);
@@ -857,7 +878,7 @@ $(document).ready(function() {
var jsonTextToParse = '{"queryText": "", "lemma_forma": "", "opzioni_testo": "", "TipoClausola": "' + claType + '", "Attiva": "' + claActive + '"';
};
if ($("#" + claListItemId)[0]) {
- $("#" + claListItemId + " .clatext").replaceWith('' + claText + '');
+ $("#" + claListItemId + " .clatext").replaceWith('' + claText + '');
} else {
addLIitem(sortableId,claIdNum,claText,checkInsert);
};
@@ -948,7 +969,6 @@ $(document).ready(function() {
//$("#sparqlquery").val(logicExprString);
queryJson.EsprLogica = logicExprString.split(' ');
queryJson.LogicaGui = guiLogicString.split(' ');
- console.log(queryJson);
};
// Funzione di refresh dei collegamenti tra elementi sortable