1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Add js-clearhostapd-log ajax handler

This commit is contained in:
billz 2022-09-26 20:54:12 +01:00
parent cbdc5a11e5
commit b51ca53d4b

View File

@ -122,6 +122,13 @@ $(document).on("click", "#gen_wpa_passphrase", function(e) {
$('#txtwpapassphrase').val(genPassword(63)); $('#txtwpapassphrase').val(genPassword(63));
}); });
$(document).on("click", "#js-clearhostapd-log", function(e) {
$.post('ajax/logging/clearlog.php?',{'svc':'hostapd'},function(data){
jsonData = JSON.parse(data);
$("#hostapd-log").val("");
});
});
// Enable Bootstrap tooltips // Enable Bootstrap tooltips
$(function () { $(function () {
$('[data-toggle="tooltip"]').tooltip() $('[data-toggle="tooltip"]').tooltip()