diff options
author | Matěj Cepl <mcepl@redhat.com> | 2009-11-18 23:55:30 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2009-11-18 23:55:30 +0100 |
commit | 1465b8790cb2d0d5ce69d825b95706e8047a1809 (patch) | |
tree | 300bde222cbe34054aefb47cbe8a6501f2d2df41 | |
parent | 9d903b5882411c64ce813abcac048e91e97a6fd0 (diff) | |
download | bugzilla-triage-1465b8790cb2d0d5ce69d825b95706e8047a1809.tar.gz |
Make it visible that the bug is triaged.
-rw-r--r-- | bugzillaBugTriage.js | 14 |
1 files changed, 13 insertions, 1 deletions
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)); } |