From 160e4914cacc3a958d6733d1c134d28e2bed1c4c Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 9 Sep 2021 07:43:01 +0100 Subject: [PATCH] . --- anatomy/static/js/anatomy.js | 5 ++--- rapids/templates/rapids/mark_overview.html | 2 +- static/css/anatomy.css | 1 + static/js/anatomy.js | 5 ++--- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/anatomy/static/js/anatomy.js b/anatomy/static/js/anatomy.js index 477e3fc0..aa1bd713 100644 --- a/anatomy/static/js/anatomy.js +++ b/anatomy/static/js/anatomy.js @@ -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(); } }) }); diff --git a/rapids/templates/rapids/mark_overview.html b/rapids/templates/rapids/mark_overview.html index 143c1398..1340307f 100644 --- a/rapids/templates/rapids/mark_overview.html +++ b/rapids/templates/rapids/mark_overview.html @@ -12,7 +12,7 @@ diff --git a/static/css/anatomy.css b/static/css/anatomy.css index a653bf86..b3b12bc5 100644 --- a/static/css/anatomy.css +++ b/static/css/anatomy.css @@ -708,4 +708,5 @@ input { .sticky-alert { position: sticky; + top: 5px; } \ No newline at end of file diff --git a/static/js/anatomy.js b/static/js/anatomy.js index 477e3fc0..aa1bd713 100644 --- a/static/js/anatomy.js +++ b/static/js/anatomy.js @@ -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(); } }) });