Clear individual rows from action log
This commit is contained in:
parent
5df30cb8a9
commit
8d9d2b6433
4 changed files with 34 additions and 0 deletions
|
|
@ -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