Clear individual rows from action log

This commit is contained in:
calzoneman 2013-07-13 13:23:32 -04:00
parent 5df30cb8a9
commit 8d9d2b6433
4 changed files with 34 additions and 0 deletions

View file

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