# WARNING: head commit changed in the meantime
Aggiunto funzioni grafiche per editing del filtro
This commit is contained in:
parent
0190b204e0
commit
e179efa0b4
Binary file not shown.
After Width: | Height: | Size: 1003 B |
File diff suppressed because it is too large
Load Diff
|
@ -148,20 +148,7 @@ $(document).ready(function() {
|
|||
|
||||
jQuery(document).delegate('a.add-record', 'click', function(e) {
|
||||
e.preventDefault();
|
||||
var content = jQuery('#categoriagrammaticale >div'),
|
||||
size = jQuery('#condizioni >div').length + 1,
|
||||
element = null,
|
||||
element = content.clone();
|
||||
|
||||
element.attr('id', 'cg-' + size);
|
||||
element.find('.remove-filter').attr('target','cg-'+size);
|
||||
element.find('.set-filter').attr('targetfilter','cg-'+size);
|
||||
element.appendTo('#condizioni');
|
||||
element.find('.sn').html(size);
|
||||
grammarconditions = grammarconditions + 1
|
||||
|
||||
if (size == 1)
|
||||
jQuery('#grammarbutton').attr('style', "display:block;")
|
||||
showCategoriaGrammaticale();
|
||||
});
|
||||
|
||||
jQuery(document).delegate('a.add-record-sint', 'click', function(e) {
|
||||
|
@ -369,8 +356,7 @@ $(document).ready(function() {
|
|||
sbs.find(".set-filter").attr('style', 'display.none')
|
||||
test.remove()
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
element.attr('style', "display: none;")
|
||||
//element.appendTo('#dettaglifiltri');
|
||||
|
||||
|
@ -550,6 +536,52 @@ $(document).ready(function() {
|
|||
}
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Il Filtro "scritto" viene editato
|
||||
|
||||
*/
|
||||
|
||||
jQuery(document).delegate('a.edit-written-filter', 'click', function(e) {
|
||||
|
||||
e.preventDefault();
|
||||
var didConfirm = confirm("Sei sicuro di voler editare il filtro?");
|
||||
if (didConfirm == true) {
|
||||
|
||||
showCategoriaGrammaticale()
|
||||
}
|
||||
|
||||
return true;
|
||||
/*} else {
|
||||
return false;
|
||||
}*/
|
||||
});
|
||||
|
||||
/**
|
||||
*
|
||||
Visualizza Categoria Grammaticale
|
||||
*/
|
||||
|
||||
function showCategoriaGrammaticale() {
|
||||
|
||||
|
||||
var content = jQuery('#categoriagrammaticale >div'),
|
||||
size = jQuery('#condizioni >div').length + 1,
|
||||
element = null,
|
||||
element = content.clone();
|
||||
|
||||
element.attr('id', 'cg-' + size);
|
||||
element.find('.remove-filter').attr('target', 'cg-' + size);
|
||||
element.find('.set-filter').attr('targetfilter', 'cg-' + size);
|
||||
element.appendTo('#condizioni');
|
||||
element.find('.sn').html(size);
|
||||
grammarconditions = grammarconditions + 1
|
||||
|
||||
if (size == 1)
|
||||
jQuery('#grammarbutton').attr('style', "display:block;")
|
||||
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).delegate('a.add-details', 'click', function(e) {
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Reference in New Issue