aggiunto alert x ricerca vuota

This commit is contained in:
Luca Trupiano 2022-09-30 10:16:53 +02:00
parent 0db22d5494
commit dfea18a1c8
1 changed files with 6 additions and 0 deletions

View File

@ -363,6 +363,12 @@ $(document).ready(function() {
// Evento: Submit form
$("form").submit(function(e){
e.preventDefault();
var qText = $("form #queryText")[0].value;
var tabsC=$("#cla-TabContent").find(".tab-pane:not(:first)");
if (qText == "" && $(tabsC).length == 0) {
alert("Inserire un termine di ricerca od una clausola!");
return false;
}
//alert("Funzione non ancora implementata!");
//const SparqlParser = sparqljs.Parser;
const sparqlGenerator = sparqljs.Generator;