From 1465b8790cb2d0d5ce69d825b95706e8047a1809 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 18 Nov 2009 23:55:30 +0100 Subject: Make it visible that the bug is triaged. --- bugzillaBugTriage.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index 9dba30f..6cfa8c6 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -12,6 +12,7 @@ var RawhideColor = "#007700"; // or "green" var RHITColor = "#660066"; var SalmonPink = "#FFE0B0"; var ReporterColor = "#FFFFA6"; +var TriagedColor = "#F58989"; var XMLRPCurl = "https://bugzilla.redhat.com/xmlrpc.cgi"; var myConfig = jetpack.storage.simple; var badMIMEArray = ["application/octet-stream","text/x-log"]; @@ -318,6 +319,15 @@ bzPage.prototype.setBranding = function () { }); } + // Make it visible whether the bug has been triaged + if (this.hasKeyword("Triaged")) { + console.log("Nastav barvu"); + $("#bz_field_status",this.doc).css({ + 'background-image' : 'none', + 'background-color' : TriagedColor + }); + } + // we should make visible whether maintCCAddr is in CCList if (isInList(this.maintCCAddr, this.CCList)) { $("#cc_edit_area_showhide", this.doc). @@ -483,6 +493,7 @@ bzPage.prototype.fillInChipMagic = function () { var XorgLogFound = false; var attURL = "", interestingLine = ""; var interestingArray = []; + // Find out Xorg.0.log attachment URL this.XorgLogAttList = this.attachments.filter(function (value, index, array) { @@ -624,7 +635,8 @@ bzPage.prototype.selectOption = function(id,label) { * */ bzPage.prototype.hasKeyword = function(str) { - var kwd = $.trim($('#keywords',this.doc).text()); + var kwd = $.trim($('#keywords',this.doc).val()); + console.log("Keywords = " + kwd); return (RegExp(str).test(kwd)); } -- cgit