File tree Expand file tree Collapse file tree
packs/src/decidim/elections/voter
views/decidim/elections/votes Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 1- < div class ="vote-wrapper ">
1+ < div id ="vote-wrapper ">
22 < div class ="focus__step ">
33 <% if vote &.pending? %>
44 <%= render ( "show_casting" ) %>
You can’t perform that action at this time.
0 commit comments