Skip to content

Commit 8e54547

Browse files
committed
use id better than css classes
1 parent 0e8def4 commit 8e54547

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

decidim-elections/app/packs/src/decidim/elections/voter/new-vote.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { setupVoteComponent } = window.Decidim;
66

77
$(async () => {
88
// UI Elements
9-
const $voteWrapper = $(".vote-wrapper");
9+
const $voteWrapper = $("#vote-wrapper");
1010

1111
if ($voteWrapper.length) {
1212
const $ballotHash = $voteWrapper.find(".ballot-hash");
@@ -15,10 +15,10 @@ $(async () => {
1515
// Use the questions component
1616
const questionsComponent = new VoteQuestionsComponent($voteWrapper);
1717
questionsComponent.init();
18-
$(document).on("on.zf.toggler", () => {
19-
// continue and back btn
20-
questionsComponent.init();
21-
});
18+
// $(document).on("on.zf.toggler", () => {
19+
// // continue and back btn
20+
// questionsComponent.init();
21+
// });
2222

2323
// Get the vote component and bind it to all UI events
2424
const voteComponent = setupVoteComponent($voteWrapper);

decidim-elections/app/views/decidim/elections/votes/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="vote-wrapper">
1+
<div id="vote-wrapper">
22
<div class="focus__step">
33
<% if vote&.pending? %>
44
<%= render("show_casting") %>

0 commit comments

Comments
 (0)