From c57d979375eb5831e2571984444ae6c3053953e3 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 28 Dec 2009 20:31:47 +0100 Subject: Finally roughly complete version ... no testing. --- bugzillaBugTriage.js | 16 ++++++++-------- 1 file 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); }; /** -- cgit