Compare commits

...

1 Commits

Author SHA1 Message Date
alexdbondoc17 c168e5c99f Fix `flash message` in `doctrines` 4 years ago
  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) {
if(status === 'success') {
$('.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);
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( "<span><b>Case Lists was successfully save</b></span>" );
$( ".toast-body" ).html( "<span><b>Case Lists was successfully saved</b></span>" );
$('.toast').fadeOut(5000);
if (index === annotations_attributes.length - 1) {

Loading…
Cancel
Save