|
|
|
@ -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) { |
|
|
|
|