Browse Source

Fix `prompt` message

pull/135/head
Alexander D. Bondoc 4 years ago
parent
commit
05b0f0f94a
No known key found for this signature in database
GPG Key ID: 2CCA40FDDA18E7F8
  1. 4
      app/javascript/controllers/doctrines_controller.js

4
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) { $.post("/api/doctrines", $.extend({ jurisprudence_ids: [document_id] }, params), function(doctrine, status) {
if(status === 'success') { if(status === 'success') {
$('.toast').addClass('bg-success').show(); $('.toast').addClass('bg-success').show();
$( ".toast-body" ).html( "<span><b>Doctrine was successfully save</b></span>" ); $( ".toast-body" ).html( "<span><b>Doctrine was successfully saved</b></span>" );
$('.toast').fadeOut(5000); $('.toast').fadeOut(5000);
if (annotations_attributes.length > 0) { if (annotations_attributes.length > 0) {
@ -98,7 +98,7 @@ export default class extends ApplicationController {
$.post("/api/doctrines/" + doctrine.id + "/annotations", annotation, function(result, status) { $.post("/api/doctrines/" + doctrine.id + "/annotations", annotation, function(result, status) {
if(status === 'success') { if(status === 'success') {
$('.toast').addClass('bg-success').show(); $('.toast').addClass('bg-success').show();
$( ".toast-body" ).html( "<span><b>Case Lists was successfully save</b></span>" ); $( ".toast-body" ).html( "<span><b>Case Lists was successfully saved</b></span>" );
$('.toast').fadeOut(5000); $('.toast').fadeOut(5000);
if (index === annotations_attributes.length - 1) { if (index === annotations_attributes.length - 1) {

Loading…
Cancel
Save