diff options
-rw-r--r-- | contrib/log.php | 9 |
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) { | |||
235 | function load_debug (btn, up) | 235 | function load_debug (btn, up) |
236 | { | 236 | { |
237 | var tr = $(btn).parents("tr"); | 237 | var tr = $(btn).parents("tr"); |
238 | var level = tr.attr("class"); | 238 | var level; |
239 | var pos = parseInt(tr.attr("id")); | 239 | var pos = parseInt(tr.attr("id")); |
240 | var first = pos + 1; | 240 | var first = pos + 1; |
241 | var last = pos - 1; | 241 | var last = pos - 1; |
242 | for (var index = 0; index < types.length; ++index) { | ||
243 | if (tr.hasClass(types[index])) | ||
244 | { | ||
245 | level = types[index]; | ||
246 | break; | ||
247 | } | ||
248 | } | ||
242 | if (up) { | 249 | if (up) { |
243 | if (parseInt(tr.prev().attr("id")) == last) { | 250 | if (parseInt(tr.prev().attr("id")) == last) { |
244 | msg ("Already loaded"); | 251 | msg ("Already loaded"); |