From b75478ef16eaf6d0dfd4c6ed3059d844158512e7 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 4 Apr 2011 00:01:53 +0200 Subject: Move marking reporter's to otherButtons module. --- data/lib/bzpage.js | 23 ----------------------- data/lib/otherButtons.js | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js index d65c232..f99d60c 100644 --- a/data/lib/bzpage.js +++ b/data/lib/bzpage.js @@ -324,29 +324,6 @@ function setConfigurationButton () { }, false); } -/** - * 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(); -} - /** * dd * 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 @@ -2,6 +2,29 @@ // http://www.opensource.org/licenses/mit-license.php "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 * -- cgit