From fafe5eccaf27dcf3ac4b65b85907ad0a6a470218 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 7 Jul 2021 18:14:26 +0100 Subject: [PATCH] . --- rapids/templates/rapids/question_display_block.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rapids/templates/rapids/question_display_block.html b/rapids/templates/rapids/question_display_block.html index 8e177e5b..742415d5 100755 --- a/rapids/templates/rapids/question_display_block.html +++ b/rapids/templates/rapids/question_display_block.html @@ -84,7 +84,7 @@ $(document).ready(function () { $(".suggested_answers li").each((n, el) => { - $(el).append($("[Add Correct]").on("click", function () { + $(el).append($("[Add Correct]").on("click", function () { $.ajax({ url: "{% url 'answer_submit' %}", data: { @@ -104,7 +104,7 @@ if (data.success) { toastr.info('Answer saved') - $(el).find(".confirm").remove() + $(el).find(".correct").remove() } // show some message according to the response. // For eg. A message box showing that the status has been changed @@ -120,7 +120,7 @@ $(".proposed-answer").each((n, el) => { // Add button to confirm answer is correct - $(el).append($("[Add Correct]").on("click", function () { + $(el).append($("[Add Correct]").on("click", function () { $.ajax({ url: "{% url 'answer_suggestion_confirm' %}", data: { @@ -139,7 +139,7 @@ if (data.success) { toastr.info('Answer saved') - $(el).find(".correct").remove() + $(el).find(".confirm").remove() $(el).removeClass("proposed-answer") } // show some message according to the response.