Skip to content

Commit

Permalink
Fixed issues with grade editing
Browse files Browse the repository at this point in the history
  • Loading branch information
aopell committed Jan 28, 2018
1 parent cdae7df commit 5bf7311
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/grades.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ for (let course of courses) {
let gradeWrapper = assignment.querySelector(".grade-wrapper");
// FIXME correct behavior for editing dropped assignments
if (!assignment.classList.contains("dropped")) {
let checkbox = document.getElementById("enable-modify");
let editGradeImg = createElement("img", ["grade-edit-indicator"], {
src: "https://www.iconninja.com/files/727/965/72/edit-draw-pencile-write-icon.svg",
width: 12
width: 12,
style: `display: ${checkbox && checkbox.checked ? "unset" : "none"};`
});
let gradeAddEditHandler = null;
if (assignment.classList.contains("grade-add-indicator")) {
Expand Down

0 comments on commit 5bf7311

Please sign in to comment.