summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/attachment.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/attachment.js b/js/attachment.js
index d3ba26796..b62555fbe 100644
--- a/js/attachment.js
+++ b/js/attachment.js
@@ -21,6 +21,15 @@
* Marc Schumann <wurblzap@gmail.com>
*/
+function validateAttachmentForm(theform) {
+ var desc_value = YAHOO.lang.trim(theform.description.value);
+ if (desc_value == '') {
+ alert(BUGZILLA.string.attach_desc_required);
+ return false;
+ }
+ return true;
+}
+
function updateCommentPrivacy(checkbox) {
var text_elem = document.getElementById('comment');
if (checkbox.checked) {