diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-04-04 00:01:53 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-04-04 00:01:53 +0200 |
commit | b75478ef16eaf6d0dfd4c6ed3059d844158512e7 (patch) | |
tree | 0b11b1756b7b9897e829d8528b8ebd0a4e2fe4e5 /data/lib/otherButtons.js | |
parent | 0ace4d34ece35b717b64ee1d3312cdc3c07696b5 (diff) | |
download | bugzilla-triage-b75478ef16eaf6d0dfd4c6ed3059d844158512e7.tar.gz |
Move marking reporter's to otherButtons module.
Diffstat (limited to 'data/lib/otherButtons.js')
-rw-r--r-- | data/lib/otherButtons.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/data/lib/otherButtons.js b/data/lib/otherButtons.js index b7bb7d5..6bc0499 100644 --- a/data/lib/otherButtons.js +++ b/data/lib/otherButtons.js @@ -3,6 +3,29 @@ "use strict"; /** + * Set background color of all comments made by reporter in ReporterColor color + * + */ +function checkComments () { + var reporter = getReporter(); + commentsWalker(function(x) { + var email = parseMailto(x.getElementsByClassName("vcard")[0] + .getElementsByTagName("a")[0]); + if (email.indexOf(reporter) != -1) { + x.style.backgroundColor = ReporterColor.toString(); + } + }); +} + +function collectComments () { + var outStr = ""; + commentsWalker(function(x) { + outStr += x.getElementsByTagName("pre")[0].textContent + "\n"; + }); + return outStr.trim(); +} + +/** * Find default assignee based on the current component * * @return String what would be a default assignee if |