<script type="text/javascript"> function listFunctionDelete(href) { if (href !== '') { if (confirm("{{ options.confirmMessage|trans }}")) { $.ajax({ type: "DELETE", url: href }).done(function (data) { if (data.status) { alert(data.message); window.location.reload(); } else { alert(data.message); } }); } } else { alert("{{ 'universal.button.noHref.alert'|trans }}"); } }</script>