From 00cb8f7fa4297ef800cef0e49a4bb17a85419afb Mon Sep 17 00:00:00 2001 From: Aaron Opell Date: Mon, 1 Nov 2021 12:23:40 -0700 Subject: [PATCH 1/2] fixed period sort --- js/grades.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/js/grades.js b/js/grades.js index b0d67ab..7036ecc 100644 --- a/js/grades.js +++ b/js/grades.js @@ -505,14 +505,6 @@ var fetchQueue = []; } if (!document.location.search.includes("past") || document.location.search.split("past=")[1] != 1) { - if (Setting.getValue("orderClasses") == "period") { - for (let course of coursesByPeriod) { - if (course) { - course.parentElement.appendChild(course); - } - } - } - let timeRow = document.getElementById("past-selector"); let gradeModifLabelFirst = true; if (timeRow == null) { @@ -999,6 +991,16 @@ var fetchQueue = []; await courseTask; } + if (!document.location.search.includes("past") || document.location.search.split("past=")[1] != 1) { + if (Setting.getValue("orderClasses") == "period") { + for (let course of coursesByPeriod) { + if (course) { + course.parentElement.appendChild(course); + } + } + } + } + function getLetterGrade(gradingScale, percentage) { let sorted = Object.keys(gradingScale).sort((a, b) => b - a); for (let s of sorted) { From 82538151a56fe230867ea46ae6ab7e5ce8c4eb7f Mon Sep 17 00:00:00 2001 From: Aaron Opell Date: Mon, 1 Nov 2021 12:24:00 -0700 Subject: [PATCH 2/2] bump version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 5f02aca..5330451 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ "id": "schoology.plus@aopell.me" } }, - "version": "7.3.2", + "version": "7.3.3", "icons": { "128": "imgs/icon@128.png", "64": "imgs/icon@64.png",