summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-02-17 15:26:20 +0000
committerBart Polot <bart@net.in.tum.de>2014-02-17 15:26:20 +0000
commitd97115ba939ed447d17344286fbd2329686f779c (patch)
treeb691ea230b71836d9643ca6f8f61b5303a6d72d0 /contrib
parent86ed501858fdff7bf9841bddb071e6884e57094c (diff)
- select only level from tr classes
Diffstat (limited to 'contrib')
-rw-r--r--contrib/log.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/log.php b/contrib/log.php
index 28730d49c..8d272cd56 100644
--- a/contrib/log.php
+++ b/contrib/log.php
@@ -235,10 +235,17 @@ if ($start !== null || $stop !== null) {
function load_debug (btn, up)
{
var tr = $(btn).parents("tr");
- var level = tr.attr("class");
+ var level;
var pos = parseInt(tr.attr("id"));
var first = pos + 1;
var last = pos - 1;
+ for (var index = 0; index < types.length; ++index) {
+ if (tr.hasClass(types[index]))
+ {
+ level = types[index];
+ break;
+ }
+ }
if (up) {
if (parseInt(tr.prev().attr("id")) == last) {
msg ("Already loaded");