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(); });