From c9b42cf739c67be283c1bf744a08cf162c8742e9 Mon Sep 17 00:00:00 2001 From: programmingKyle <155344874+programmingKyle@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:48:26 -0400 Subject: [PATCH] Project Click Populate Subtopic - When you click on a project div it will now also change the input dropdown to match the subtopic of what was selected --- src/recentProjects.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/recentProjects.js b/src/recentProjects.js index cd9feb0..034d6d7 100644 --- a/src/recentProjects.js +++ b/src/recentProjects.js @@ -29,18 +29,16 @@ async function populateRecentProjects(){ projectItem_el.append(projectName_el, projectTimeText_el, projectTopicText_el, projectSubtopicText_el); projectListDiv_el.append(projectItem_el); - projectEventListener(projectItem_el, element.topicID, element.subtopicID, element.project); } } function projectEventListener(div, topicID, subtopicID, project){ div.addEventListener('click', () => { - console.log(subtopicSelect_el); topicSelect_el.value = topicID; + populateSubtopicSelect(topicID); subtopicSelect_el.value = subtopicID; projectInput_el.value = project; - console.log(topicID, subtopicID, project); }); }