Fix dynamic challenge hint loading (#1224)

* Fixes hint loading for dynamic challenges
This commit is contained in:
Kevin Chung
2020-01-28 22:16:44 -05:00
committed by GitHub
parent d59bfa3578
commit 309e62520e

View File

@@ -31,8 +31,7 @@
<div class="challenge-hints hint-row row">
{% for hint in hints %}
<div class='col-md-12 hint-button-wrapper text-center mb-3'>
<a class="btn btn-info btn-hint btn-block" href="javascript:;"
onclick="javascript:loadhint({{ hint.id }})">
<a class="btn btn-info btn-hint btn-block load-hint" href="javascript:;" data-hint-id="{{ hint.id }}">
{% if hint.hint %}
<small>
View Hint