Skip to content

Commit

Permalink
Fixed edit toggle while assignments hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
glen3b committed Dec 13, 2017
1 parent 9bb9f26 commit e37d4c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/grades.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ for (let course of courses) {
addAssignmentThing.getElementsByClassName("title")[0].firstElementChild.addEventListener("click", function () {
addAssignmentThing.querySelector("img.grade-edit-indicator").click();
});

if (assignment.classList.contains("hidden")) {
addAssignmentThing.classList.add("hidden");
}

assignment.insertAdjacentElement('afterend', addAssignmentThing);
processAssignment(addAssignmentThing);

Expand Down

0 comments on commit e37d4c3

Please sign in to comment.