aboutsummaryrefslogtreecommitdiffstats
path: root/data/internalMods/createBugElsewhere.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-28 13:18:44 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-05-28 13:18:44 +0200
commit4ec7f38055b0b230c55d68a208a3a537c19dfc24 (patch)
tree71160e3433c7395b88d4bde21acbc697c10b43c0 /data/internalMods/createBugElsewhere.js
parent51a1dbb63fde70c33956a8381a6378bf294a4194 (diff)
downloadbugzilla-triage-4ec7f38055b0b230c55d68a208a3a537c19dfc24.tar.gz
Use new tab.attach() internal page-mod method of creating new upstream bug.
Fixes #100
Diffstat (limited to 'data/internalMods/createBugElsewhere.js')
-rw-r--r--data/internalMods/createBugElsewhere.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/internalMods/createBugElsewhere.js b/data/internalMods/createBugElsewhere.js
new file mode 100644
index 0000000..a20257f
--- /dev/null
+++ b/data/internalMods/createBugElsewhere.js
@@ -0,0 +1,6 @@
+function fillTheForm(data) {
+ var elems = document.forms.namedItem('Create').elements;
+ elems.namedItem('short_desc').value = data.subject;
+ elems.namedItem('comment').value = data.comment;
+ self.postMessage("done!");
+};