paginazione: pagina non ricreata se i partametri non cambiano

This commit is contained in:
cesare 2023-03-17 09:01:00 +01:00
parent 1a08ecd6a9
commit 04ecd42efc
1 changed files with 8 additions and 2 deletions

View File

@ -436,10 +436,15 @@ $(" ."+formaClass).hover(function(idx, element) {
*/
//$.manageResultList(start, offset)
var prevstart=-1
var prevoffset=-1
jQuery.manageResultList = function manageResultList(start, offset = showOffset){
if(offset==prevoffset && start==prevstart && cantoDisplayed=='#vistaFrasi')
return
console.log('Paginazione...')
prevstart=start
prevoffset=offset
if(cantoDisplayed!='#vistaFrasi'){
prevCantoDisplayed=cantoDisplayed;
$(cantoDisplayed).css("display", "none");
@ -447,6 +452,7 @@ $(" ."+formaClass).hover(function(idx, element) {
$("#vistaFrasi").attr('style', 'display: d-flex;');
cantoDisplayed="#vistaFrasi";
}
//listarisultati.sort(function(a, b){return a - b});
showFrasi (start, offset)
if (selectedVista=='frasi'){