From d51c1db2133337ed5e52e566d9c26236554ab856 Mon Sep 17 00:00:00 2001 From: nicola Date: Thu, 20 Feb 2025 18:46:37 +0100 Subject: [PATCH] ordinamento globale del risultato query riferimenti --- js/dataMgr_5.0.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/js/dataMgr_5.0.js b/js/dataMgr_5.0.js index 2e58f5a..52ae16b 100644 --- a/js/dataMgr_5.0.js +++ b/js/dataMgr_5.0.js @@ -259,6 +259,22 @@ export async function queryRiferimenti(filtro, cid) { } listaidversi = [] + var arrayIdx = 0; + + if (resKeys.includes("Inferno")){ + listaidversi[arrayIdx] = resxcantica.Inferno; + arrayIdx++; + } + if (resKeys.includes("Purgatorio")){ + listaidversi[arrayIdx] = resxcantica.Purgatorio; + arrayIdx++; + } + if (resKeys.includes("Paradiso")){ + listaidversi[arrayIdx] = resxcantica.Paradiso; + arrayIdx++; + } + + var numcid = cid.split('_')[1] for (var cantica in resxcantica) { var $nctags = $(' .navig-canto')