Skip to content

Commit

Permalink
debug 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobmaker55 committed Sep 15, 2024
1 parent 4a6c291 commit 7713bb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/javascript/modules/majorProjectForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class MajorProjectForm {
let txt = input.value.replace(/[^a-zA-Z0-9\+\-\.\# ]/g, ''); // allowed characters list
if (txt) input.insertAdjacentHTML("beforebegin", '<span class="skill-tag" id=f"ski">' + txt + '</span>');
let skills = document.getElementsByClassName("skill-tag")
skills[skills.length - 1].addEventListener('click', e => this.onRemoveTag(e));
skills.item(skills.length - 1).addEventListener('click', e => this.onRemoveTag(e));
input.value = "";
input.focus();

Expand All @@ -63,6 +63,8 @@ export default class MajorProjectForm {
projectSkills: skills,
projectDescription: this.form.querySelector('textarea[name=description]').value
};

console.log(payload)

FetchUtil.postWithWarning(this.endpoint, payload, {
warningText: "You will not be able to edit your " +
Expand Down

0 comments on commit 7713bb5

Please sign in to comment.