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