aboutsummaryrefslogtreecommitdiffstats
path: root/bugzillaBugTriage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2009-11-16 02:27:28 +0100
committerMatěj Cepl <mcepl@redhat.com>2009-11-16 02:27:28 +0100
commit7991060b3493be98375850fc174ac2ecb1f75829 (patch)
tree2adcf257be56f0fe4376c78ab52bac1892add8cc /bugzillaBugTriage.js
parent4ac78835a325a733a46e20ccd00559381cbca953 (diff)
downloadbugzilla-triage-7991060b3493be98375850fc174ac2ecb1f75829.tar.gz
Search also in the Whiteboard field, and again comment-box has value not
text.
Diffstat (limited to 'bugzillaBugTriage.js')
-rw-r--r--bugzillaBugTriage.js17
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);
}
/**