diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-06-16 10:36:13 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-06-16 10:36:13 +0200 |
commit | 21374b14830837fe525046c1a77a4b61f31df6fa (patch) | |
tree | 2901376c5b97e82413a1b97e6c187236c047843b /lib/logger.js | |
parent | 9c56aebdc7182fab939c900a6cf9580f38855f32 (diff) | |
download | bugzilla-triage-21374b14830837fe525046c1a77a4b61f31df6fa.tar.gz |
Port bugfixes from the -prototype branch. simpleStorage is apparently
not that simple and it will need to be fixed.
Diffstat (limited to 'lib/logger.js')
-rw-r--r-- | lib/logger.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/logger.js b/lib/logger.js index 6bd8142..8481f66 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -25,19 +25,21 @@ Logger.prototype.addLogRecord = function(that) { let recKey = utilMod.getISODate(rec.date) + "+" + urlMod.parse(rec.url).host + "+" + that.bugNo; + console.log("rec = " + rec.toSource()); + let clearLogAElem = that.doc.getElementById("clearLogs"); - clearLogAElem.style.color = this.FullLogsColor; - clearLogAElem.style.fontWeight = "bolder"; + if (clearLogAElem.style.color != this.FullLogsColor) { + clearLogAElem.style.color = this.FullLogsColor; + clearLogAElem.style.fontWeight = "bolder"; + } if (this.store[recKey]) { this.store[recKey].comment += "<br/>\n" + comment; } else { this.store[recKey] = rec; } jetpack.storage.simple.sync(); - return rec; - } else { - return comment; } + return comment; }; Logger.prototype.getBugzillaAbbr = function(url) { |