Clear individual rows from action log
This commit is contained in:
parent
5df30cb8a9
commit
8d9d2b6433
4 changed files with 34 additions and 0 deletions
|
|
@ -187,6 +187,7 @@
|
|||
<table class="table table-bordered table-striped table-compact">
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="actionlog_rem">Remove</th>
|
||||
<th id="actionlog_ip">IP Address</th>
|
||||
<th id="actionlog_name">Name</th>
|
||||
<th id="actionlog_action">Action</th>
|
||||
|
|
|
|||
|
|
@ -157,6 +157,16 @@ function getActionLog() {
|
|||
tbl.data("allentries", entries);
|
||||
tbl.data("generator", function(e) {
|
||||
var tr = $("<tr/>").appendTo($("#actionlog table"));
|
||||
var rem = $("<td/>").appendTo(tr);
|
||||
$("<button/>").addClass("btn btn-mini btn-danger")
|
||||
.html("<i class='icon-trash'></i>")
|
||||
.appendTo(rem)
|
||||
.click(function () {
|
||||
socket.emit("acp-actionlog-clear-one", e);
|
||||
tr.hide("blind", function () {
|
||||
tr.remove();
|
||||
});
|
||||
});
|
||||
$("<td/>").text(e.ip).appendTo(tr);
|
||||
$("<td/>").text(e.name).appendTo(tr);
|
||||
$("<td/>").text(e.action).appendTo(tr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue