Sha256: eef1bb3962236b49a3f82f91e4a5c99aa7a5990a38f212c90f3f289e23e8283e
Contents?: true
Size: 554 Bytes
Versions: 18
Compression:
Stored size: 554 Bytes
Contents
import { datalistSelect } from "src/decidim/datalist_select"; $(() => { const wrapper = document.querySelector("#choose-template"); if (!wrapper) { return; } const preview = (id) => { const options = wrapper.dataset; const previewURL = options.previewurl; if (!previewURL) { return; } const params = new URLSearchParams({ id: id }); Rails.ajax({ url: `${previewURL}?${params.toString()}`, type: "GET", error: (data) => (console.error(data)) }); } datalistSelect(wrapper, preview) })
Version data entries
18 entries across 18 versions & 1 rubygems