From 4f8cfd0fc6bdc68aa295ad5336623b09c086a74b Mon Sep 17 00:00:00 2001 From: ghermans Date: Mon, 23 Mar 2020 13:21:24 +0100 Subject: [PATCH] Remove the folders if install is completed --- public/installer/views/email.blade.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/public/installer/views/email.blade.php b/public/installer/views/email.blade.php index 14092e4d1..33bb189f9 100644 --- a/public/installer/views/email.blade.php +++ b/public/installer/views/email.blade.php @@ -99,11 +99,6 @@ $('#mail_port').append('
' + data.errors.mail_port + '
'); } - // if (data.errors.mail_encryption) { - // $('#mail_encryption').addClass('has-error'); - // $('#mail_encryption').append('
' + data.errors.mail_encryption + '
'); - // } - if (data.errors.mail_from) { $('#mail_from').addClass('has-error'); $('#mail_from').append('
' + data.errors.mail_from + '
'); @@ -122,6 +117,16 @@ $('#admin').hide(); $('#email').hide(); $('#finish').show(); + + var removeInstaller = window.location.href.concat('/Cleanup.php'); + $.ajax({ + type : 'POST', + url : removeInstaller, + dataType : 'json', + encode : true + }).done(function(data) { + console.log('The installation folder have been removed.') + }); } }); // stop the form from submitting the normal way and refreshing the page