From 3e0d373be5b1736837e711e5983e704aa906cc06 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 21 Sep 2009 22:02:28 +0000 Subject: Bug 388830: Use JS to make sure there's a Description value when submitting an attachment Patch by Max Kanat-Alexander r=dkl, a=LpSolit --- template/en/default/attachment/create.html.tmpl | 4 +++- template/en/default/global/header.html.tmpl | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'template/en') diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl index c265ae567..0b965bc4e 100644 --- a/template/en/default/attachment/create.html.tmpl +++ b/template/en/default/attachment/create.html.tmpl @@ -38,7 +38,9 @@ doc_section = "attachments.html" %] -
+ diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 3116f0019..f8044976d 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -206,6 +206,11 @@ var BUGZILLA = { param: { cookiepath: '[% Param('cookiepath') FILTER js %]' + }, + + string: { + attach_desc_required: + 'You must enter a Description for this attachment.' } }; [% IF javascript %] -- cgit v1.2.3-24-g4f1b