working on syntactic filters: in progress
This commit is contained in:
parent
07e58b3f06
commit
28e6086d9e
|
@ -252,16 +252,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!-- DIV CONDIZIONE LOGICA -->
|
||||
<div class="outline w-100 pa1 mr1" id="andor" style="display: none;">
|
||||
<select id="andorconditions"
|
||||
class="w-100 db h2 f6 bg-near-white ba b--sliver gray catgram"
|
||||
name="condizionelogica" onchange="" title="Condizione logica">
|
||||
<option value="all">AND</option>
|
||||
<option value="all">OR</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- DIV DETTAGLIFILTRI -->
|
||||
|
||||
|
@ -351,9 +341,26 @@
|
|||
|
||||
|
||||
<div style="display: none;" id='tiposintattico'>
|
||||
<div class="outline w-25 pv4 ph1">
|
||||
<div class="outline w-25 pv1 ph1">
|
||||
<div class="flex flex-column">
|
||||
|
||||
<nav class="pa1 pa1-ns">
|
||||
<a class="link dim gray f6 f2-ns dib mr0 remove-filter" href="#"
|
||||
title="Remove"><img src="./images/chiudi1.png"
|
||||
style="width: 22px; height: 20px;"></a>
|
||||
|
||||
|
||||
<a class="link dim gray f6 f2-ns dib mr0 set-filter" href="#"
|
||||
title="Set" style="display:none"><img
|
||||
src="./images/smalldone.png" style="width: 22px; height: 20px;"></a>
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="outline w-100 pa1 mr1">
|
||||
|
||||
|
||||
<select id="synttypes"
|
||||
class="w-100 db h2 f6 bg-near-white ba b--sliver gray"
|
||||
class="w-100 db h2 f6 bg-near-white ba b--sliver gray synttype"
|
||||
name="typeSyntax0" title="Tipo sintattico" value="oggetto">
|
||||
<option value=".+" class="w-10"
|
||||
onclick="myformsyntax.functionSyntax0.disabled = false;">Qualsiasi
|
||||
|
@ -902,8 +909,11 @@
|
|||
<option value="temp ipo">temporale con valore ipotetico</option>
|
||||
</optgroup>
|
||||
|
||||
</select> <br /> <select name="functionSyntax0"
|
||||
class="w-100 db h2 f6 bg-near-white ba b--sliver gray"
|
||||
</select>
|
||||
</div>
|
||||
<div class="outline w-100 pa1 mr1">
|
||||
<select name="functionSyntax"
|
||||
class="w-100 db h2 f6 bg-near-white ba b--sliver gray syntfun"
|
||||
title="Livello di subordinazione">
|
||||
<option value=".+">Qualsiasi livello di subordinazione</option>
|
||||
|
||||
|
@ -938,6 +948,8 @@
|
|||
</optgroup>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
$(document).ready(function() {
|
||||
grammarconditions = 0
|
||||
sintconditions=0
|
||||
|
||||
|
||||
|
||||
|
@ -163,7 +164,7 @@ $(document).ready(function() {
|
|||
|
||||
jQuery(document).delegate('a.add-record-sint', 'click', function(e) {
|
||||
e.preventDefault();
|
||||
var content = jQuery('#tiposintattico div'),
|
||||
var content = jQuery('#tiposintattico >div'),
|
||||
size = jQuery('#condizioni >div').length + 1,
|
||||
element = null,
|
||||
element = content.clone();
|
||||
|
@ -173,11 +174,31 @@ $(document).ready(function() {
|
|||
element.find('.set-filter').attr('targetfilter','ts-'+size);
|
||||
element.appendTo('#condizioni');
|
||||
element.find('.sn').html(size);
|
||||
sintconditions = sintconditions + 1
|
||||
if (size == 1)
|
||||
jQuery('#grammarbutton').attr('style', "display:block;")
|
||||
});
|
||||
|
||||
/**
|
||||
SCELTA TIPO SINTATTICO
|
||||
*/
|
||||
|
||||
|
||||
jQuery(document).delegate('select.synttype', 'change', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
//alert(($(this).closest('div')).closest('div').attr('id'))
|
||||
var pare=$(this).parents()[2];
|
||||
var sbs=($(this).closest('div')).siblings()
|
||||
sbs.find(".set-filter").attr('style', 'display.block')
|
||||
|
||||
})
|
||||
|
||||
/**
|
||||
|
||||
SCELTA CATEGORIA GRAMMATICALE
|
||||
|
||||
*/
|
||||
jQuery(document).delegate('select.catgram', 'change', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
|
@ -190,7 +211,7 @@ $(document).ready(function() {
|
|||
sbs.find(".add-details").attr('style', 'display.block')
|
||||
sbs.find(".set-filter").attr('style', 'display.block')
|
||||
|
||||
alert(pare.id)
|
||||
//alert(pare.id)
|
||||
containerid = 'dettaglio_' + pare.id;//$(this).closest('div').attr('id')
|
||||
sbs.find(".add-details").attr('target', containerid)
|
||||
sbs.find(".set-filter").attr('target', containerid)
|
||||
|
@ -406,7 +427,12 @@ $(document).ready(function() {
|
|||
return false;
|
||||
}
|
||||
});
|
||||
// scrittura del filtro
|
||||
/**
|
||||
Il Filtro viene trascritto
|
||||
|
||||
*/
|
||||
|
||||
|
||||
jQuery(document).delegate('a.set-filter', 'click', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
|
|
Loading…
Reference in New Issue