summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-05-10 18:17:59 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-05-10 18:17:59 +0200
commitcae3073d481703830273644adac16c5a2598c468 (patch)
tree6aca5e67c0e9ff69e09b1d52568fe90b06388931 /extensions/BMO/template/en/default
parent380a0f8742e23868e01cd31aca113efb8ceb72f5 (diff)
downloadbugzilla-cae3073d481703830273644adac16c5a2598c468.tar.gz
bugzilla-cae3073d481703830273644adac16c5a2598c468.tar.xz
Bug 866447 - Make form.doc set up whiteboard for scrumbu.gs
Diffstat (limited to 'extensions/BMO/template/en/default')
-rw-r--r--extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl24
1 files changed, 24 insertions, 0 deletions
diff --git a/extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl
index 37d0fa0f6..0f1a6ede2 100644
--- a/extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl
+++ b/extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl
@@ -19,6 +19,25 @@
[% END %]
[% inline_javascript = BLOCK %]
+var whiteboard_map = {
+ 'Accessibility': 'c=Accessibility u=webdev p=0',
+ 'Add-ons': 'c=Addons u=mozdev p=0',
+ 'API': 'c=API u=webdev p=0',
+ 'Apps': 'c=Apps u=appdev p=0',
+ 'CSS': 'c=CSS u=webdev p=0',
+ 'Developer Tools': 'c=DevTools u=webdev p=0',
+ 'DOM': 'c=DOM u=webdev p=0',
+ 'Firefox OS': 'c=FirefoxOS u=mozdev p=0',
+ 'General': 'c=General u=webdev p=0',
+ 'HTML': 'c=HTML u=webdev p=0',
+ 'JavaScript': 'c=JavaScript u=webdev p=0',
+ 'Localization': 'c=Localization u=webdev p=0',
+ 'MathML': 'c=MathML u=webdev p=0',
+ 'Mozilla Platform': 'c=Platform u=mozdev p=0',
+ 'Protocols': 'c=Protocols u=webdev p=0',
+ 'Security': 'c=Security u=webdev p=0',
+ 'SVG': 'c=SVG u=webdev p=0',
+};
function validateAndSubmit() {
var alert_text = '';
if (!isFilledOut('type')) alert_text += 'Please select the "Request Type".\n';
@@ -29,6 +48,10 @@ function validateAndSubmit() {
alert(alert_text);
return false;
}
+ var component = YAHOO.util.Dom.get('component').value;
+ if (whiteboard_map[component]) {
+ YAHOO.util.Dom.get('status_whiteboard').value = whiteboard_map[component];
+ }
return true;
}
[% END %]
@@ -60,6 +83,7 @@ function validateAndSubmit() {
<input type="hidden" name="op_sys" value="Other">
<input type="hidden" name="version" value="unspecified">
<input type="hidden" name="bug_severity" id="bug_severity" value="normal">
+ <input type="hidden" name="status_whiteboard" id="status_whiteboard" value="">
<input type="hidden" name="token" value="[% token FILTER html %]">
<table id="doc_form">