Sha256: c2c64ac6abb1524a27be454d7e694e061017cd80b8e2b5d89835dd7d36dcdbea
Contents?: true
Size: 743 Bytes
Versions: 18
Compression:
Stored size: 743 Bytes
Contents
// show a message to the user if comunication is lost import "src/decidim/elections/broken_promises_handler"; import { Client } from "@decidim/decidim-bulletin_board"; $(async () => { const $inPersonVoteWrapper = $(".in-person-vote-wrapper"); if ($inPersonVoteWrapper.length > 0) { const bulletinBoardClient = new Client({ apiEndpointUrl: $inPersonVoteWrapper.data("apiEndpointUrl") }); const messageId = $inPersonVoteWrapper.data("messageId"); await bulletinBoardClient.waitForPendingMessageToBeProcessed(messageId); $("form.update_vote_status").trigger("submit"); } $(".js-verify-document").on("click", () => { $("#verify-document").hide(); $("#complete-voting").removeClass("hide"); }); });
Version data entries
18 entries across 18 versions & 1 rubygems