diff --git a/components/section_skills.js b/components/section_skills.js index e2a7dc9..356473a 100644 --- a/components/section_skills.js +++ b/components/section_skills.js @@ -64,6 +64,29 @@ var sectionSkillsComponent = { moveDownClicked: function(index) { this.$root.moveArrayPosition(this.$root.sections.skills, index, index + 1); + }, + + deleteClickedKeyword: function(kIndex, index) + { + var response = confirm("Are you sure you want to delete this keyword?"); + + if (response == true) + { + this.$root.sections.skills[kIndex].keywords.splice(index, 1); + } + }, + + moveUpClickedKeyword: function(kIndex,index) + { + if (index > 0) + this.$root.moveArrayPosition(this.$root.sections.skills[kIndex].keywords, index, index - 1); + }, + + + moveDownClickedKeyword: function(kIndex,index) + { + if (index < this.$root.sections.skills[kIndex].keywords.length) + this.$root.moveArrayPosition(this.$root.sections.skills[kIndex].keywords, index, index + 1); } } }; \ No newline at end of file diff --git a/index.html b/index.html index 7c755c5..55a71c0 100644 --- a/index.html +++ b/index.html @@ -694,11 +694,9 @@ Keywords (e.g. HTML, CSS, JavaScript). -
    -
  1. - -
  2. -
+
+ +