Apply functionality to openvpn log

This commit is contained in:
billz
2022-09-27 12:04:54 +02:00
parent 5d0454f96e
commit b1870d40e8
2 changed files with 11 additions and 2 deletions

View File

@@ -136,6 +136,14 @@ $(document).on("click", "#js-cleardnsmasq-log", function(e) {
});
});
$(document).on("click", "#js-clearopenvpn-log", function(e) {
$.post('ajax/logging/clearlog.php?',{'logfile':'/tmp/openvpn.log'},function(data){
jsonData = JSON.parse(data);
$("#openvpn-log").val("");
});
});
// Enable Bootstrap tooltips
$(function () {
$('[data-toggle="tooltip"]').tooltip()