corretto bug firefox, aggiunta classe nowrap per i versi
This commit is contained in:
parent
2bf937668a
commit
4633e31863
|
@ -469,16 +469,20 @@ jQuery(document).delegate('#cleanresult', 'click', function(e) {
|
|||
|
||||
var orderedListaCanti = Array.from(listaCanti)
|
||||
orderedListaCanti = orderedListaCanti.sort((a, b) => {
|
||||
if (parseInt(a.split(" ")[1]) < parseInt(b.split(" ")[1])) {
|
||||
return -1;
|
||||
}
|
||||
return parseInt(a.split(" ")[1], 10)-parseInt(b.split(" ")[1], 10)
|
||||
//if (parseInt(a.split(" ")[1], 10) < parseInt(b.split(" ")[1]), 10) {
|
||||
// return -1;
|
||||
//}
|
||||
});
|
||||
|
||||
var orderedListaVersi = Array.from(listaVersi)
|
||||
|
||||
orderedListaVersi = orderedListaVersi.sort((a, b) => {
|
||||
if (parseInt(a.numverso) < parseInt(b.numverso)) {
|
||||
return -1;
|
||||
}
|
||||
return parseInt(a.numverso, 10)-parseInt(b.numverso, 10)
|
||||
//if (parseInt(a.numverso, 10) < parseInt(b.numverso, 10)) {
|
||||
// console.log(parseInt(a.numverso, 10)+' '+parseInt(b.numverso, 10))
|
||||
// return -1;
|
||||
//}
|
||||
|
||||
});
|
||||
|
||||
|
@ -494,9 +498,10 @@ jQuery(document).delegate('#cleanresult', 'click', function(e) {
|
|||
|
||||
var orderedListaForme = Array.from(listaForme)
|
||||
orderedListaForme = orderedListaForme.sort((a, b) => {
|
||||
if (parseInt(a.pos) < parseInt(b.pos)) {
|
||||
return -1;
|
||||
}
|
||||
return parseInt(a.pos, 10)-parseInt(b.pos, 10)
|
||||
//if (parseInt(a.pos) < parseInt(b.pos)) {
|
||||
// return -1;
|
||||
//}
|
||||
|
||||
});
|
||||
|
||||
|
@ -530,7 +535,7 @@ jQuery(document).delegate('#cleanresult', 'click', function(e) {
|
|||
elementoverso.append(verso.numverso + ". ")
|
||||
//elementoverso.append(verso.numverso + ". " + managePunctuation(verso.verso))
|
||||
elementoverso.attr("style", "line-height: 0.5em")
|
||||
elementoverso.attr('class', 'f6 font-weight-lighter')
|
||||
elementoverso.attr('class', 'f6 font-weight-lighter nowrap')
|
||||
elementoverso.attr('id', verso.cantica+"_"+ verso.canto.replace(" ", "_")+"_"+verso.numverso)
|
||||
elementoverso.appendTo('#' + cantica + verso.canto.replace(" ", "_"))
|
||||
|
||||
|
@ -597,12 +602,9 @@ jQuery(document).delegate('#cleanresult', 'click', function(e) {
|
|||
for(cantica of cantiche){
|
||||
i+=1
|
||||
let count = resultsInCantica.reduce((n, x) => n + (x === cantica), 0);
|
||||
//<span class="badge badge-primary badge-pill"></span>
|
||||
var spanbadgecantica=$('<span />');
|
||||
spanbadgecantica.attr('class', 'badge badge-primary badge-pill ml-1');
|
||||
//spanbadgecantica.attr('class', 'position-absolute top-0 start-100 translate-middle badge rounded-pill badge-primary');
|
||||
spanbadgecantica.append(count)
|
||||
//spanbadgecantica.insertAfter($('#cantica'+i))
|
||||
spanbadgecantica.appendTo($('#cantica'+i))
|
||||
}
|
||||
//aggiunge badge con totale risultati accanto ai canti
|
||||
|
@ -612,7 +614,6 @@ jQuery(document).delegate('#cleanresult', 'click', function(e) {
|
|||
if (k==0)
|
||||
continue
|
||||
let count = resultsInCanto.reduce((n, x) => n + (x === cantica+'Canto '+k), 0);
|
||||
//<span class="badge badge-outline-info badge-pill">14</span>
|
||||
|
||||
var spanbadge=$('<span />');
|
||||
spanbadge.attr('class', cantobadgeclass);
|
||||
|
|
Loading…
Reference in New Issue