diff options
Diffstat (limited to 'bugzillaBugTriage.js')
-rw-r--r-- | bugzillaBugTriage.js | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index f54c6a5..99fd70d 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -481,10 +481,10 @@ bzPage.prototype.fillInChipMagic = function () { * @param product (optional) string with the product name * @return None * - * old - * long_desc=Xpress%20200&bug_status=NEW&bug_status=ASSIGNED - * new - * long_desc_type=substring&long_desc=Xpress%20200&bug_status=NEW&bug_status=ASSIGNED + * TODO make this method parametrized and use it for once for general search (as it is now) + * a second time for the search for the same card_ID cards (button next to the Whiteboard field + * when it matches card_ string). + * FIXME search only in the same product version &version=11 */ bzPage.prototype.queryInNewTab = function(text,component,product) { // Optional parameter @@ -500,7 +500,8 @@ bzPage.prototype.queryInNewTab = function(text,component,product) { } if (text) { url += "&field0-0-0=longdesc&type0-0-0=substring&value0-0-0="+text+ - "&field0-0-1=attach_data.thedata&type0-0-1=substring&value0-0-1="+text; + "&field0-0-1=attach_data.thedata&type0-0-1=substring&value0-0-1="+text+ + "&field0-0-2=status_whiteboard&type0-0-2=substring&value0-0-2="+text; } jetpack.tabs.open(url); } @@ -644,10 +645,10 @@ bzPage.prototype.addTextToComment = function(string2BAdded) { // don't remove the current content of the comment box, // just behave accordingly - if (commentTextarea.text().length > 0) { - commentTextarea.text(commentTextarea.text() + "\n\n"); + if (commentTextarea.attr("value").length > 0) { + commentTextarea.attr("value",commentTextarea.attr("value") + "\n\n"); } - commentTextarea.text(commentTextarea.text() + string2BAdded); + commentTextarea.attr("value",commentTextarea.attr("value") + string2BAdded); } /** |