Skip to content

Commit

Permalink
api: Fix /api/endpoints/ javascript for now.
Browse files Browse the repository at this point in the history
This was apparently completely broken for some time, and got a bit
worse with my recent changes (enough to fail a test).

Since the plan for this page likely involves dissecting and
eliminating it, I think it makes sense to just fix it hackishly and
move on.
  • Loading branch information
timabbott committed Oct 31, 2017
1 parent 8c9ea94 commit 9bf81b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/zerver/api_endpoints.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

{% block customhead %}
{{ super() }}
{{ render_bundle('api') }}
{% endblock %}

{% block portico_content %}
Expand Down Expand Up @@ -61,4 +60,10 @@ <h3>Example response</h3>
</div>
{% endfor %}
{% endautoescape %}
<script>
$('a[data-toggle="tab"]').on('shown', function (e) {
$("." + $(e.target).data("class")).show();
$("." + $(e.relatedTarget).data("class")).hide();
});
</script>
{% endblock %}

0 comments on commit 9bf81b7

Please sign in to comment.