From 55cd33286191d5adb884ada002856aa0d6178fcc Mon Sep 17 00:00:00 2001 From: billz Date: Mon, 3 Apr 2023 18:47:58 +0200 Subject: [PATCH] Add js-system-reset-confirm handler --- app/js/custom.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/js/custom.js b/app/js/custom.js index 3bae9432..77d87dd7 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -322,6 +322,17 @@ $('#ovpn-userpw,#ovpn-certs').on('click', function (e) { } }); +$('#js-system-reset-confirm').on('click', function (e) { + var resetHtml = $('#js-system-reset-confirm').attr('data-message'); + resetHtml += ''; + $('#system-reset-message').html(resetHtml); + $.post('ajax/networking/do_systemreset.php?',function(data){ + var responseText = JSON.parse(data); + $('#system-reset-message').text(responseText); + }); + +}); + $(document).ready(function(){ $("#PanelManual").hide(); });