From 05b0f0f94af5162f42dc10e8f2241f0201bbff22 Mon Sep 17 00:00:00 2001 From: "Alexander D. Bondoc" Date: Wed, 27 Apr 2022 14:55:16 +0800 Subject: [PATCH] Fix `prompt` message --- app/javascript/controllers/doctrines_controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/controllers/doctrines_controller.js b/app/javascript/controllers/doctrines_controller.js index 65e287c..dc919c0 100644 --- a/app/javascript/controllers/doctrines_controller.js +++ b/app/javascript/controllers/doctrines_controller.js @@ -90,7 +90,7 @@ export default class extends ApplicationController { $.post("/api/doctrines", $.extend({ jurisprudence_ids: [document_id] }, params), function(doctrine, status) { if(status === 'success') { $('.toast').addClass('bg-success').show(); - $( ".toast-body" ).html( "Doctrine was successfully save" ); + $( ".toast-body" ).html( "Doctrine was successfully saved" ); $('.toast').fadeOut(5000); if (annotations_attributes.length > 0) { @@ -98,7 +98,7 @@ export default class extends ApplicationController { $.post("/api/doctrines/" + doctrine.id + "/annotations", annotation, function(result, status) { if(status === 'success') { $('.toast').addClass('bg-success').show(); - $( ".toast-body" ).html( "Case Lists was successfully save" ); + $( ".toast-body" ).html( "Case Lists was successfully saved" ); $('.toast').fadeOut(5000); if (index === annotations_attributes.length - 1) {