diff --git a/app/js/custom.js b/app/js/custom.js index b2dd65b3..3a99eaa7 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -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(); }); diff --git a/templates/about.php b/templates/about.php index 74a53c52..8e1be914 100755 --- a/templates/about.php +++ b/templates/about.php @@ -41,66 +41,19 @@ require_once 'app/lib/Parsedown.php';
- - -