Sha256: 76dc0329d836c86163c94a257dae56611193b2c37fb2bb77eb048377f4fff135
Contents?: true
Size: 472 Bytes
Versions: 19
Compression:
Stored size: 472 Bytes
Contents
$(() => { $(document).on("click", "a[data-open-url],button[data-open-url]", (event) => { event.preventDefault(); const $link = $(event.currentTarget); const $modal = $(`#${$link.data("open")}`); $modal.html("<div class='loading-spinner'></div>"); $.ajax({ type: "get", url: $link.data("open-url"), success: (html) => { const $html = $(html); $modal.html($html); $html.foundation(); } }); }); });
Version data entries
19 entries across 19 versions & 1 rubygems