bug fixed

This commit is contained in:
cesare 2023-11-09 16:21:04 +01:00
parent 4e4a24983f
commit 1babf44179
1 changed files with 2 additions and 2 deletions

View File

@ -941,7 +941,7 @@ function getVersiConCitazioni(canticapar='', cantopar=''){
let citcantiche=['Inferno','Purgatorio','Paradiso'] let citcantiche=['Inferno','Purgatorio','Paradiso']
if (canticapar==''){ if (canticapar==''){
citazioni.map(function(item) { citazioni.map(function(item) {
console.log(item['Cantica']+', '+item['Canto']+', '+item['Verso']); console.log(item['Cantica']+', '+item['Canto']+', '+item['Verso'].split('-')[0]);
}) })
return return
} }
@ -956,7 +956,7 @@ function getVersiConCitazioni(canticapar='', cantopar=''){
tca=item['Canto'] tca=item['Canto']
if (tca.startsWith('0')) if (tca.startsWith('0'))
tca=tca.replace('0','') tca=tca.replace('0','')
citid=(citcantiche.indexOf(item['Cantica'])+1).toString()+'_'+tca+'_'+item['Verso'] citid=(citcantiche.indexOf(item['Cantica'])+1).toString()+'_'+tca+'_'+item['Verso'].split('-')[0]
console.log(citid) console.log(citid)
var commentsItem = {} var commentsItem = {}
commentsItem['verso'] = citid; commentsItem['verso'] = citid;