magicsunday/webtrees-pedigree-chart

not an issue, a question

aime44 opened this issue · 2 comments

Hi magicsunday.
Thanks for your script.
I don't know if it's the best place to ask a thing, in the webtrees forum they said to go here.

I use this script and i search a solution to open a new window on click to go in the individual page.

I don't know javascript.
Maybe the the to modify is this?

function(){t.personClick(e.data)}))}))}personClick(t){1!==t.generation?this.redirectToIndividual(t.url):this.update(t.updateUrl)}redirectToIndividual(t){window.location=t}update(t){window.location=t}}

but how?

thank you

Hi.

I think you could replace the window.location=t inredirectToIndividual(t){window.location=t}with something like this window.open(t, "_blank");

Added with f394fa6