diff --git a/app/frontend/controllers/index.js b/app/frontend/controllers/index.js index 743adba1c..ee3be6037 100644 --- a/app/frontend/controllers/index.js +++ b/app/frontend/controllers/index.js @@ -14,6 +14,3 @@ application.register("govukfrontend", GovukfrontendController) import NumericQuestionController from "./numeric_question_controller.js" application.register("numeric-question", NumericQuestionController) - -import TasklistController from "./tasklist_controller.js" -application.register("tasklist", TasklistController) diff --git a/app/frontend/controllers/tasklist_controller.js b/app/frontend/controllers/tasklist_controller.js deleted file mode 100644 index be94797f8..000000000 --- a/app/frontend/controllers/tasklist_controller.js +++ /dev/null @@ -1,8 +0,0 @@ -import { Controller } from "@hotwired/stimulus" - -export default class extends Controller { - addHighlight() { - let section_to_highlight = this.element.dataset.info; - document.getElementById(section_to_highlight).classList.add('tasklist_item_highlight'); - } -} diff --git a/app/views/case_logs/edit.html.erb b/app/views/case_logs/edit.html.erb index 28b2eacd6..fe7e2d661 100644 --- a/app/views/case_logs/edit.html.erb +++ b/app/views/case_logs/edit.html.erb @@ -18,10 +18,7 @@

<% if next_incomplete_section.present? %> - > + Skip to next incomplete section: <%= next_incomplete_section.label %> <% end %>