From edda88a23f4de94a88c845c3864a1c6b38f69e4c Mon Sep 17 00:00:00 2001 From: Stephen Berquet Date: Mon, 6 Oct 2014 14:41:34 +0200 Subject: [PATCH 1/2] fix #17 : All groups are initially expanded (even if specifying Collapsed = true) --- extension/chrome/content/lib/renderer.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/extension/chrome/content/lib/renderer.js b/extension/chrome/content/lib/renderer.js index fcfaec5..bca566d 100644 --- a/extension/chrome/content/lib/renderer.js +++ b/extension/chrome/content/lib/renderer.js @@ -209,11 +209,12 @@ function(DOMPLATE, REPS, CSS) // NOTE: Throttleing is disabled which may caue the group to be interted in a different // index than originally intended as other messages are inserted with throttleing enabled. // This should be done in a better way in future. - var row = Firebug.Console.openGroup(msg, context, "group", null, true); - - if(meta.Collapsed && meta.Collapsed=='true') { - CSS.removeClass(row, "opened"); - } + if (meta.Collapsed && 'true' == meta.Collapsed) { + var row = Firebug.Console.openCollapsedGroup(msg, context, "group", null, true); + } else { + var row = Firebug.Console.openGroup(msg, context, "group", null, true); + } + if(meta.Color) { row.style.color = meta.Color; } From 7951fde6bd82a4a65daf1f48896b0d05c667afa7 Mon Sep 17 00:00:00 2001 From: Stephen Berquet Date: Sat, 11 Oct 2014 16:02:38 +0200 Subject: [PATCH 2/2] large amount of table brakes hierarchy in firebug console --- extension/chrome/content/lib/renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/chrome/content/lib/renderer.js b/extension/chrome/content/lib/renderer.js index bca566d..c42de70 100644 --- a/extension/chrome/content/lib/renderer.js +++ b/extension/chrome/content/lib/renderer.js @@ -61,7 +61,7 @@ function(DOMPLATE, REPS, CSS) if (this.consoleTemplates[TemplateName]) { oo = Firebug.Console.logRow(function(object, row, rep) { return rep.tag.append({object: object, meta:Meta}, row); - }, Data, context, this.consoleTemplates[TemplateName].className, this.consoleTemplates[TemplateName], null, false); + }, Data, context, this.consoleTemplates[TemplateName].className, this.consoleTemplates[TemplateName], null, true); } else if(UseFirebugTemplates) {