From f221fafb8ed96a46952e7b1676928ce620235953 Mon Sep 17 00:00:00 2001 From: Stephen Berquet Date: Mon, 6 Oct 2014 14:41:34 +0200 Subject: [PATCH] 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; }