Replace politicians' names with pictures

This commit is contained in:
Charlotte Van Petegem 2025-05-24 12:03:25 +02:00
parent b5649a6ea8
commit f7101c521d
Signed by: chvp
SSH key fingerprint: SHA256:s9rb8jBVfdahqWHuBAcHCBP1wmj4eYQXZfqgz4H3E9E
14 changed files with 31 additions and 17 deletions

View file

@ -8,6 +8,7 @@ export default function initPoliticianQuestions() {
Sortable.create(list, {
swap: true,
filter: ".politician-image",
onUpdate: (event) => {
const newOrder = Array.from(event.to.children).map((el) => Number.parseInt(el.dataset.id))
submitValue(submitUrl, { order: newOrder })