Cleanup template, fix timing of js execution

This commit is contained in:
billz
2023-11-24 18:10:16 +00:00
parent d6a4d33758
commit 484a1e8702
2 changed files with 15 additions and 61 deletions

View File

@@ -308,16 +308,17 @@ $('#chkupdateModal').on('shown.bs.modal', function (e) {
});
});
$('#js-sys-check-update').click(function() {
$('#performUpdate').on('submit', function(event) {
event.preventDefault();
var csrfToken = $('meta[name=csrf_token]').attr('content');
$.post('ajax/system/sys_perform_update.php',{
'csrf_token': csrfToken
})
$('#chkupdateModal').modal('hide');
$('#performupdateModal').modal('show');
});
$('#performupdateModal').on('shown.bs.modal', function (e) {
var csrfToken = $('meta[name=csrf_token]').attr('content');
$.post('ajax/system/sys_perform_update.php',{
'csrf_token': csrfToken,
})
fetchUpdateResponse();
});