mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Add js-system-reset-confirm handler
This commit is contained in:
parent
ce7e84ec61
commit
55cd332861
@ -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 += '<i class="fas fa-cog fa-spin ml-2"></i>';
|
||||
$('#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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user