.
This commit is contained in:
@@ -59,10 +59,9 @@ $(document).ready(function () {
|
||||
$("#question-mark-list li").show();
|
||||
});
|
||||
$(".show-unmarked-button").click(() => {
|
||||
console.log("TESTIG");
|
||||
$("#question-mark-list li").each((n, el) => {
|
||||
console.log(el);
|
||||
if (el.dataset.markcount < 1) { $(el).hide(); }
|
||||
// Can't seem to get django to output this as a int....
|
||||
if (parseInt(el.dataset.markcount) < 1) { $(el).hide(); }
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<ul id="question-mark-list">
|
||||
{% for question, unmarked_count in question_unmarked_map %}
|
||||
<li data-markcount={{unmarked_count|add:"0"}}><a href="{% url 'rapids:mark' pk=exam.pk sk=forloop.counter0 %}">Question {{forloop.counter }}:
|
||||
<li data-markcount={{unmarked_count}}><a href="{% url 'rapids:mark' pk=exam.pk sk=forloop.counter0 %}">Question {{forloop.counter }}:
|
||||
{{ question }}</a><br />Unmarked answers: {{unmarked_count}}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
@@ -708,4 +708,5 @@ input {
|
||||
|
||||
.sticky-alert {
|
||||
position: sticky;
|
||||
top: 5px;
|
||||
}
|
||||
@@ -59,10 +59,9 @@ $(document).ready(function () {
|
||||
$("#question-mark-list li").show();
|
||||
});
|
||||
$(".show-unmarked-button").click(() => {
|
||||
console.log("TESTIG");
|
||||
$("#question-mark-list li").each((n, el) => {
|
||||
console.log(el);
|
||||
if (el.dataset.markcount < 1) { $(el).hide(); }
|
||||
// Can't seem to get django to output this as a int....
|
||||
if (parseInt(el.dataset.markcount) < 1) { $(el).hide(); }
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user