Aggiunta getJsonQuery function
This commit is contained in:
parent
a9ffc29f72
commit
c41d18ef57
|
@ -8,6 +8,8 @@ require("../node_modules/jquery-ui-dist/jquery-ui.js");
|
|||
require("../node_modules/bootstrap/dist/js/bootstrap.bundle.min.js");
|
||||
*/
|
||||
|
||||
var getJsonQuery;
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
//$('#multidraggable1').multidraggable();
|
||||
|
@ -273,8 +275,8 @@ $(document).ready(function() {
|
|||
// queryFields.push(jsonQuery.variables[i].variable.value);
|
||||
//}
|
||||
console.log(jsonQuery);
|
||||
execQuery = new sparqlGenerator().stringify(jsonQuery);
|
||||
executeQuery();
|
||||
//execQuery = new sparqlGenerator().stringify(jsonQuery);
|
||||
//executeQuery();
|
||||
return false;
|
||||
});
|
||||
|
||||
|
@ -462,14 +464,6 @@ $(document).ready(function() {
|
|||
var condLIplaceholderText2d = 'Trascina qui almeno 2 clausole o condizioni, oppure attiva le clausole inattive';
|
||||
var condLIplaceholderPart1 = '<li id="placeholderSort';
|
||||
var condLIplaceholderPart2 = '" class="mx-0 my-1 p-1 pl-3 list-group-item align-items-center border text-muted small bg-light ui-state-disabled ui-state-disabled-opacity-06">';
|
||||
|
||||
var condLIpart1 = '<li id="cond';
|
||||
var condLIpart2and = '" class="condLI-AND mx-0 my-1 p-1 list-group-item align-items-center border text-muted bg-lida10"><ul id="sortable';
|
||||
var condLIpart3and = '" class="handle list-group ui-sortable"><div class="row ml-1 pr-2 justify-content-between"><div class=" pb-1 small font-weight-bold text-muted">AND</div>' + iconCloseCond + '</div>' + condLIplaceholderPart1;
|
||||
var condLIpart2or = '" class="condLI-OR mx-0 my-1 p-1 list-group-item align-items-center border text-muted bg-lida11"><ul id="sortable';
|
||||
var condLIpart3or = '" class="handle list-group ui-sortable"><div class="row ml-1 pr-2 justify-content-between"><div class=" pb-1 small font-weight-bold text-muted">OR</div>' + iconCloseCond + '</div>' + condLIplaceholderPart1;
|
||||
var condLIpart4 = condLIplaceholderPart2 + condLIplaceholderText2 + '</li></ul></li>';
|
||||
|
||||
|
||||
// Variabili funzionali
|
||||
var tabID = 0;
|
||||
|
@ -491,6 +485,9 @@ $(document).ready(function() {
|
|||
|
||||
// Fine variabili
|
||||
|
||||
getJsonQuery = function(){
|
||||
return queryJson;
|
||||
}
|
||||
|
||||
async function executeQuery(){
|
||||
$("#loader").show();
|
||||
|
|
Loading…
Reference in New Issue