aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/otherButtons.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-04 00:01:53 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:44:01 +0200
commite9461083b1abcc1bbc9f710c18bdf56fdedb1a83 (patch)
tree144b9af791a38cb6f9ba99dbba61c6480cf71808 /data/lib/otherButtons.js
parent461f09665a6a9be7700237f6b458b65ca38061d5 (diff)
downloadbugzilla-triage-e9461083b1abcc1bbc9f710c18bdf56fdedb1a83.tar.gz
Move marking reporter's to otherButtons module.
Diffstat (limited to 'data/lib/otherButtons.js')
-rw-r--r--data/lib/otherButtons.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/data/lib/otherButtons.js b/data/lib/otherButtons.js
index bc445bf..3a1f76a 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