[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r32369 - gnunet/contrib
From: |
gnunet |
Subject: |
[GNUnet-SVN] r32369 - gnunet/contrib |
Date: |
Mon, 17 Feb 2014 16:26:19 +0100 |
Author: bartpolot
Date: 2014-02-17 16:26:19 +0100 (Mon, 17 Feb 2014)
New Revision: 32369
Modified:
gnunet/contrib/log.php
Log:
- add peer selection
Modified: gnunet/contrib/log.php
===================================================================
--- gnunet/contrib/log.php 2014-02-17 15:26:18 UTC (rev 32368)
+++ gnunet/contrib/log.php 2014-02-17 15:26:19 UTC (rev 32369)
@@ -222,8 +222,18 @@
}
}
- 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");
var pos = parseInt(tr.attr("id"));
@@ -268,8 +278,8 @@
}
$(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) });
});
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r32369 - gnunet/contrib,
gnunet <=