summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-02-17 15:26:19 +0000
committerBart Polot <bart@net.in.tum.de>2014-02-17 15:26:19 +0000
commit86ed501858fdff7bf9841bddb071e6884e57094c (patch)
tree01ac5b131ee90f187c8f75a23966378690fd109e /contrib
parent28c1c2195d174fa1e71b9483b8a2646cf9909d75 (diff)
- add peer selection
Diffstat (limited to 'contrib')
-rw-r--r--contrib/log.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/contrib/log.php b/contrib/log.php
index 663d963e4..28730d49c 100644
--- a/contrib/log.php
+++ b/contrib/log.php
@@ -222,7 +222,17 @@ if ($start !== null || $stop !== null) {
}
}
- function show (btn, up)
+ function showpeer (peer)
+ {
+ $("#"+peer).toggleClass("active");
+ if ($("#"+peer).hasClass("active")) {
+ $("."+peer).show();
+ } else {
+ $("."+peer).hide();
+ }
+ }
+
+ function load_debug (btn, up)
{
var tr = $(btn).parents("tr");
var level = tr.attr("class");
@@ -268,8 +278,8 @@ if ($start !== null || $stop !== null) {
}
$(function() {
- $(".btn-showup").on ("click", function(){ show(this, true) });
- $(".btn-showdown").on ("click", function(){ show(this, false) });
+ $(".btn-showup").on ("click", function(){ load_debug(this, true) });
+ $(".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) });
});