Sha256: a216e7239a89c6566c4ce18ac5bd0a909aa4ed594292eedec681918f14d32662
Contents?: true
Size: 759 Bytes
Versions: 8
Compression:
Stored size: 759 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").attr("hidden", true); $("#complete-voting").attr("hidden", false); }); });
Version data entries
8 entries across 8 versions & 1 rubygems