Skip to content

Commit

Permalink
* More javascript cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bgroff committed Sep 19, 2018
1 parent 86dd669 commit 070ac0f
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,12 @@ <h4 class="ui header">

{% block scripts %}
<script>
{# $('.ui.styled.fluid.accordion')#}
{# .accordion()#}
{# ;#}
$('.ui.checkbox')
.checkbox()
;
var
$buttons = $('.ui.buttons .button'),
$toggle = $('.main .ui.toggle.button'),
$button = $('.ui.button').not($buttons).not($toggle),
// alias
handler = {

activate: function() {
$(this)
.addClass('active')
Expand All @@ -154,15 +147,5 @@ <h4 class="ui header">
$buttons
.on('click', handler.activate)
;


$toggle
.state({
text: {
inactive : 'Vote',
active : 'Voted'
}
})
;
</script>
{% endblock %}

0 comments on commit 070ac0f

Please sign in to comment.