minor changes.
This commit is contained in:
parent
0a6ebfab97
commit
78fec2307f
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
|
@ -146,10 +146,7 @@ $(document).ready(function() {
|
||||||
$(this).siblings().removeClass('bg-white').removeClass('red');
|
$(this).siblings().removeClass('bg-white').removeClass('red');
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery(document).delegate('a.add-record', 'click', function(e) {
|
|
||||||
e.preventDefault();
|
|
||||||
showCategoriaGrammaticale();
|
|
||||||
});
|
|
||||||
|
|
||||||
jQuery(document).delegate('a.add-record-sint', 'click', function(e) {
|
jQuery(document).delegate('a.add-record-sint', 'click', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -536,6 +533,12 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
jQuery(document).delegate('a.add-record', 'click', function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
showCategoriaGrammaticale();
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Il Filtro "scritto" viene editato
|
Il Filtro "scritto" viene editato
|
||||||
|
@ -559,16 +562,20 @@ $(document).ready(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
Visualizza Categoria Grammaticale
|
* Visualizza Categoria Grammaticale
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function showCategoriaGrammaticale() {
|
function showCategoriaGrammaticale() {
|
||||||
|
|
||||||
|
$("#types").val("verbovolgare").trigger("change");
|
||||||
|
|
||||||
|
// Per Cesare... il valore viene cambiato infatti se aggiungo il filtro è corretto, ma nella dropdown non è visibile
|
||||||
|
|
||||||
var content = jQuery('#categoriagrammaticale >div'),
|
var content = jQuery('#categoriagrammaticale >div'),
|
||||||
size = jQuery('#condizioni >div').length + 1,
|
size = jQuery('#condizioni >div').length + 1,
|
||||||
element = null,
|
element = null,
|
||||||
element = content.clone();
|
element = content.clone();
|
||||||
|
alert("Value: " + $("#types").val());
|
||||||
|
|
||||||
element.attr('id', 'cg-' + size);
|
element.attr('id', 'cg-' + size);
|
||||||
element.find('.remove-filter').attr('target', 'cg-' + size);
|
element.find('.remove-filter').attr('target', 'cg-' + size);
|
||||||
|
|
Loading…
Reference in New Issue