aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bugzillaBugTriage.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js
index 79b3b6e..d180964 100644
--- a/bugzillaBugTriage.js
+++ b/bugzillaBugTriage.js
@@ -854,16 +854,16 @@ BzPage.prototype.queryForSelection = function() {
* function this.queryInNewTab, and run it.
*/
BzPage.prototype.sendBugUpstream = function() {
- var baseURL = filterByRegexp(upstreamBugzillasArray,
+ var url = filterByRegexp(upstreamBugzillasArray,
this.getOptionValue("component"));
- var text = jetpack.selection.text;
- if (!text) {
- text = jetpack.clipboard.get();
- }
- if (text) {
- this.queryInNewTab(text, this.component);
- }
+ var text = this.dok.getElementById("short_desc_nonedit_display").
+ textContent.trim() + "\n\n";
+ text += this.collectComments();
+ jetpack.clipboard.set(text);
+ var ret = jetpack.tabs.open(url);
+ console.log("opening new tab returned");
+ console.log(ret);
};
/**