diff --git a/js/cesareBrowse.js b/js/cesareBrowse.js index 5149304..0451666 100644 --- a/js/cesareBrowse.js +++ b/js/cesareBrowse.js @@ -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'){