aboutsummaryrefslogtreecommitdiffstats
path: root/bugzillaBugTriage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2009-12-28 20:31:47 +0100
committerMatěj Cepl <mcepl@redhat.com>2009-12-28 20:31:47 +0100
commitc57d979375eb5831e2571984444ae6c3053953e3 (patch)
tree265d0ff71dd9901bc76255badee7551edeaa15de /bugzillaBugTriage.js
parent629418c499e26227a54ee6452441545ed9e89490 (diff)
downloadbugzilla-triage-c57d979375eb5831e2571984444ae6c3053953e3.tar.gz
Finally roughly complete version ... no testing.
Diffstat (limited to 'bugzillaBugTriage.js')
-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);
};
/**