aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/otherButtons.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-06-05 23:34:55 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 23:34:55 +0200
commit968a1a63f8e625994b40b7d2af2d22940285c63c (patch)
tree4e6dc4d0fd51068ccd57be9ccb2bb5e3e7de8528 /data/lib/otherButtons.js
parentffa6d74ddbf28c7fb7be1ad473847807d0301eac (diff)
downloadbugzilla-triage-968a1a63f8e625994b40b7d2af2d22940285c63c.tar.gz
Move attachments and comments functions into four separate objects.
Specifically there are objects AttachList, Attachment, Comment, and CommentList.
Diffstat (limited to 'data/lib/otherButtons.js')
-rw-r--r--data/lib/otherButtons.js27
1 files changed, 2 insertions, 25 deletions
diff --git a/data/lib/otherButtons.js b/data/lib/otherButtons.js
index 31a4dd8..ea5f67b 100644
--- a/data/lib/otherButtons.js
+++ b/data/lib/otherButtons.js
@@ -3,30 +3,6 @@
"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 we haven't set it up.
@@ -138,9 +114,10 @@ function addingEmbelishments(logList) {
* String with the IsueTracker numbers
* @return none
*/
-function setBranding(xLogAtts) {
+function setBranding(atts) {
var brandColor = {};
var TriagedColor = {};
+ var xLogAtts = atts.getXorgList();
var ITbutton = document.getElementById("cf_issuetracker");
var its = ITbutton ? ITbutton.value.trim() : "";