Browse Source

Add js-clearhostapd-log ajax handler

pull/1235/head
billz 2 months ago
parent
commit
b51ca53d4b
  1. 7
      app/js/custom.js

7
app/js/custom.js

@ -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()

Loading…
Cancel
Save