Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh217 committed Oct 23, 2021
1 parent 254ea52 commit b48fe13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jira Clone/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function createNotes(data) {

let color = node.querySelector(".note-color");
color.style.backgroundColor = colorsArr[chosenPriority];
color.addEventListener('click', function (e) {
color.addEventListener('click', function () {
let colorName = color.getAttribute('color');
let colorIdx = getColorIdx(colorName);
color.style.backgroundColor = colorsArr[(colorIdx + 1) % 4];
Expand All @@ -152,7 +152,7 @@ function createNotes(data) {
// filterTasksByColor(false, color.getAttribute('color'));

let colorHead = node.querySelector(".note-uid");
colorHead.addEventListener('click', function (e) {
colorHead.addEventListener('click', function () {
if (deleteStatus) {
node.remove();
}
Expand Down

0 comments on commit b48fe13

Please sign in to comment.