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));
});
$(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
$(function () {
$('[data-toggle="tooltip"]').tooltip()