.
This commit is contained in:
@@ -30,10 +30,14 @@ CID: {{cid}}
|
||||
{% if next %}
|
||||
<button type="submit" name="next" class="save btn btn-default">Next</button>
|
||||
{% else %}
|
||||
{% if not exam.publish_results %}
|
||||
<button type="submit" name="save" class="save btn btn-default">Save</button>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<br />
|
||||
{% if not exam.publish_results %}
|
||||
<button type="submit" name="finish" class="save btn btn-default">Overview</button>
|
||||
{% endif %}
|
||||
<button type="submit" id="goto-button" value="test" name="goto" class="hide">goto</button>
|
||||
</form>
|
||||
</div>
|
||||
@@ -48,6 +52,10 @@ CID: {{cid}}
|
||||
{% block js %}
|
||||
<script>
|
||||
$(document).ready(() => {
|
||||
{
|
||||
%
|
||||
if not exam.publish_results %
|
||||
}
|
||||
$("ul.sba-answer-list li").each((n, el) => {
|
||||
$(el).click((e) => {
|
||||
console.log(1, el.dataset.ans);
|
||||
@@ -55,7 +63,10 @@ CID: {{cid}}
|
||||
$("ul.sba-answer-list li").removeClass("selected");
|
||||
$(el).addClass("selected")
|
||||
})
|
||||
})
|
||||
}) {
|
||||
%
|
||||
endif %
|
||||
}
|
||||
|
||||
/* beautify ignore:start */
|
||||
{% if saved_answer %}
|
||||
|
||||
Reference in New Issue
Block a user