Remove the folders if install is completed

This commit is contained in:
ghermans 2020-03-23 13:21:24 +01:00
parent cea497812e
commit 4f8cfd0fc6
1 changed files with 10 additions and 5 deletions

View File

@ -99,11 +99,6 @@
$('#mail_port').append('<div class="form-error">' + data.errors.mail_port + '</div>');
}
// if (data.errors.mail_encryption) {
// $('#mail_encryption').addClass('has-error');
// $('#mail_encryption').append('<div class="form-error">' + data.errors.mail_encryption + '</div>');
// }
if (data.errors.mail_from) {
$('#mail_from').addClass('has-error');
$('#mail_from').append('<div class="form-error">' + data.errors.mail_from + '</div>');
@ -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