Commit 97468cecb6fd42ca71a4a9da08c49be7f4e31396
1 parent
4e00e7c5
Exists in
master
and in
39 other branches
Removing text from vote button
Showing
1 changed file
with
0 additions
and
9 deletions
Show diff stats
src/super_archives/templates/message-thread.html
| @@ -20,14 +20,12 @@ | @@ -20,14 +20,12 @@ | ||
| 20 | $btn.bind('click', function() { | 20 | $btn.bind('click', function() { |
| 21 | vote(msg_id); | 21 | vote(msg_id); |
| 22 | }); | 22 | }); |
| 23 | - $('.text', $btn).text("{% trans 'Vote' %}"); | ||
| 24 | } else { | 23 | } else { |
| 25 | var $btn = $('.vote.btn-default', $msg); | 24 | var $btn = $('.vote.btn-default', $msg); |
| 26 | $btn.unbind('click'); | 25 | $btn.unbind('click'); |
| 27 | $btn.bind('click', function() { | 26 | $btn.bind('click', function() { |
| 28 | unvote(msg_id); | 27 | unvote(msg_id); |
| 29 | }); | 28 | }); |
| 30 | - $('.text', $btn).text("{% trans 'Voted' %}"); | ||
| 31 | } | 29 | } |
| 32 | $btn.toggleClass('btn-success'); | 30 | $btn.toggleClass('btn-success'); |
| 33 | $btn.toggleClass('btn-default'); | 31 | $btn.toggleClass('btn-default'); |
| @@ -164,13 +162,6 @@ | @@ -164,13 +162,6 @@ | ||
| 164 | <button class="btn btn-default vote"> | 162 | <button class="btn btn-default vote"> |
| 165 | {% endif %} | 163 | {% endif %} |
| 166 | <span class="glyphicon glyphicon-thumbs-up"></span> | 164 | <span class="glyphicon glyphicon-thumbs-up"></span> |
| 167 | - <span class="text"> | ||
| 168 | - {% if user in email.vote_list %} | ||
| 169 | - {% trans "Voted" %} | ||
| 170 | - {% else %} | ||
| 171 | - {% trans "Vote" %} | ||
| 172 | - {% endif %} | ||
| 173 | - </span> | ||
| 174 | </button> | 165 | </button> |
| 175 | </div> | 166 | </div> |
| 176 | </div> | 167 | </div> |