bug fixing
This commit is contained in:
parent
8f66ce7848
commit
1eebd40af6
|
@ -359,9 +359,10 @@ $(document).ready(function() {
|
||||||
return (res)
|
return (res)
|
||||||
}
|
}
|
||||||
if (listaClausoleRisultatoContesti.length && !listarisultati.length ) {
|
if (listaClausoleRisultatoContesti.length && !listarisultati.length ) {
|
||||||
|
var lim=endcont
|
||||||
|
if (listaClausoleRisultatoContesti.length<=endcont)
|
||||||
for (let i=startcont; i<=endcont; i++){
|
lim=listaClausoleRisultatoContesti.length-1
|
||||||
|
for (let i=startcont; i<=lim; i++){
|
||||||
res.push(listaClausoleRisultatoContesti[i])
|
res.push(listaClausoleRisultatoContesti[i])
|
||||||
}
|
}
|
||||||
//res.sort(function(a, b) { puno = a[0].split('-')[3]; pdue = b[0].split('-')[3]; return parseInt(puno) - parseInt(pdue) });
|
//res.sort(function(a, b) { puno = a[0].split('-')[3]; pdue = b[0].split('-')[3]; return parseInt(puno) - parseInt(pdue) });
|
||||||
|
|
|
@ -713,7 +713,7 @@ $(document).ready(function() {
|
||||||
window.context100 = JSON.parse(JSON.stringify(contextEmpty));
|
window.context100 = JSON.parse(JSON.stringify(contextEmpty));
|
||||||
const jsonReplacer = (key, value) =>
|
const jsonReplacer = (key, value) =>
|
||||||
typeof value === 'undefined' ? 0 : value;
|
typeof value === 'undefined' ? 0 : value;
|
||||||
var nRisultatiPerPag = showOffset;
|
var nRisultatiPerPag = 30;//showOffset;
|
||||||
|
|
||||||
// Fine variabili
|
// Fine variabili
|
||||||
|
|
||||||
|
|
|
@ -122,15 +122,18 @@ function getFraseContext(fraseids, numversi = 3) {
|
||||||
}
|
}
|
||||||
maxpos = listaforme.length - 1
|
maxpos = listaforme.length - 1
|
||||||
var pos = 0
|
var pos = 0
|
||||||
var startindex = Math.max(0, (offset - 20))
|
var startindex = Math.max(0, (offset - 30))
|
||||||
|
|
||||||
for (i = startindex; i < listaforme.length; i++) {
|
for (i = startindex; i < listaforme.length; i++) {
|
||||||
var tmpos = listaforme[i].split('_')[2]
|
var tmpos = listaforme[i].split('_')[2]
|
||||||
|
|
||||||
if (parseInt(tmpos) == parseInt(fraseid.split('-')[2])) {
|
if (parseInt(tmpos) == parseInt(fraseid.split('-')[2])) {
|
||||||
pos = i;
|
pos = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log (fraseid +" - " + parseInt(fraseid.split('-')[2])+ ' - '+pos)
|
||||||
|
|
||||||
var pos2 = pos
|
var pos2 = pos
|
||||||
|
|
||||||
if (fraseids.length > 1)
|
if (fraseids.length > 1)
|
||||||
|
|
Loading…
Reference in New Issue