Skip to content

Commit

Permalink
rules: fix toggle availability
Browse files Browse the repository at this point in the history
  • Loading branch information
regit committed Aug 23, 2017
1 parent c0a7330 commit 51f7bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/templates/rules/rule.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h2 class="panel-title">Action</h2>
<li>
<form id="toggle_availability_form" class="form" action="{% url 'toggle_availability' rule.sid %}" method="post">
{% csrf_token %}
<a id="toggle_availability" href="">Toggle availability</a>
<a href="javascript:{}" onclick="document.getElementById('toggle_availability_form').submit(); return false;">Toggle availability</a>
</form>
</li>
{% endif %}
Expand Down

0 comments on commit 51f7bb1

Please sign in to comment.