From b05f8c9e5092ffb8937cc0bcf2913dd78a118cae Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 17 Feb 2014 15:26:21 +0000 Subject: - fix all and none buttons --- contrib/log.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/log.php b/contrib/log.php index 3e2711a45..2ecf1b075 100644 --- a/contrib/log.php +++ b/contrib/log.php @@ -172,8 +172,8 @@ if ($start !== null || $stop !== null) { $id): ?> - - + +
@@ -222,6 +222,17 @@ if ($start !== null || $stop !== null) { } } + function shownone() + { + $(".btn-showpeer").removeClass("active"); + $("tbody > tr").hide(); + } + + function showall() + { + $(".btn-showpeer:not(.active)").each(function(){showpeer(this.id)}); + } + function showpeer (peer) { $("#"+peer).toggleClass("active"); @@ -294,6 +305,8 @@ if ($start !== null || $stop !== null) { $(".btn-showdown").on ("click", function(){ load_debug(this, false) }); $(".btn-showlevel").on ("click", function(){ showlevel(this.id) }); $(".btn-showpeer").on ("click", function(){ showpeer(this.id) }); + $("#btn-showall").on ("click", function(){ showall() }); + $("#btn-shownone").on ("click", function(){ shownone() }); }); -- cgit v1.2.3