summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BMO/template/en/default/bug/create/create-nda.html.tmpl16
-rw-r--r--extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl2
2 files changed, 12 insertions, 6 deletions
diff --git a/extensions/BMO/template/en/default/bug/create/create-nda.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-nda.html.tmpl
index a03a5ca0f..2d766493a 100644
--- a/extensions/BMO/template/en/default/bug/create/create-nda.html.tmpl
+++ b/extensions/BMO/template/en/default/bug/create/create-nda.html.tmpl
@@ -35,12 +35,18 @@
[% inline_javascript = BLOCK %]
$(function() {
$('#nda_needed').on('change', function() {
- if ($('#nda_needed').val() == 'Yes')
+ if ($('#nda_needed').val() == 'Yes') {
$('#nda_needed_reason_row').show();
- $('#nda_needed_reason').attr('disabled', false);
- else
+ } else {
$('#nda_needed_reason_row').hide();
- $('#nda_needed_reason').attr('disabled', true);
+ }
+ });
+ $('#ndaForm').submit(function () {
+ if ($('#nda_needed').val() == 'Yes' && $('#nda_needed_reason').val() == '') {
+ alert('Please explain why confidential information needs to be shared at this stage.');
+ return false;
+ }
+ return true;
});
});
[% END %]
@@ -93,7 +99,7 @@ $(function() {
<strong>If yes, please explain.</strong>
</label>
</div>
- <textarea required="true" name="nda_needed_reason" id="nda_needed_reason" cols="80" rows="10"></textarea>
+ <textarea name="nda_needed_reason" id="nda_needed_reason" cols="80" rows="10"></textarea>
</div>
<div class="row">
diff --git a/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl b/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl
index 9ec71766b..0b6ca7179 100644
--- a/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl
+++ b/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl
@@ -223,7 +223,7 @@ custom_forms = {
link => 'form.moz.project.review'
},
{
- title => 'Independant Contractor Request',
+ title => 'Independent Contractor Request',
link => 'form.moz.project.review'
},
{