diff --git a/bl-kernel/admin/views/dashboard.php b/bl-kernel/admin/views/dashboard.php index 7caed44f..4e1e3f36 100644 --- a/bl-kernel/admin/views/dashboard.php +++ b/bl-kernel/admin/views/dashboard.php @@ -174,12 +174,13 @@ $(document).ready(function() { // Event from button accept from the modal $(".deletePageModalAcceptButton").on("click", function() { - $( "body" ).append(""); + $( "body" ).append(""); var form = jQuery('
', { 'action': HTML_PATH_ADMIN_ROOT+'edit-content/'+key, 'method': 'post', - 'target': 'formSending' + 'target': 'formSending', + 'id': 'requestForm' }).append(jQuery('', { 'type': 'hidden', 'name': 'tokenCSRF', @@ -201,8 +202,9 @@ $(document).ready(function() { // Wait for request to finish before updating search results $('#formSendingIframe').on( 'load', function() { $('.select2-search__field').trigger("input"); - } ); - + $('#requestForm').remove(); + $('#formSendingIframe').remove(); + }); }); });