diff --git a/components/section_projects.js b/components/section_projects.js index 59e0ebf..9c85424 100644 --- a/components/section_projects.js +++ b/components/section_projects.js @@ -92,6 +92,27 @@ var sectionProjectsComponent = { moveDownClicked: function(index) { this.$root.moveArrayPosition(this.$root.sections.work, index, index + 1); + }, + + deleteClickedSubitem: function(mainitem, index) + { + var response = confirm("Are you sure you want to delete this keyword?"); + + if (response == true) + { + mainitem.splice(index, 1); + } + }, + + moveUpClickedSubitem: function(mainitem,index) + { + this.$root.moveArrayPosition(mainitem, index, index - 1); + }, + + + moveDownClickedSubitem: function(mainitem,index) + { + this.$root.moveArrayPosition(mainitem, index, index + 1); } } }; \ No newline at end of file diff --git a/index.html b/index.html index 55a71c0..e657feb 100644 --- a/index.html +++ b/index.html @@ -376,7 +376,7 @@ -
+