Minor fixes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
App.Polls =
|
||||
generateToken: ->
|
||||
token = ''
|
||||
rand = ''
|
||||
for n in [0..5]
|
||||
rand = Math.random().toString(36).substr(2) # remove `0.`
|
||||
token = token + rand;
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
</div>
|
||||
<% else %>
|
||||
|
||||
<% if !@poll.voters.find_by_user_id(current_user).present? %>
|
||||
<% if poll_voter_token(@poll, current_user).empty? %>
|
||||
<div class="callout primary js-token-message" style="display: none">
|
||||
<%= t('poll_questions.show.voted_token') %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user