/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This Source Code Form is "Incompatible With Secondary Licenses", as * defined by the Mozilla Public License, v. 2.0. */ 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) { text_elem.className='bz_private'; } else { text_elem.className=''; } } function setContentTypeDisabledState(form) { var isdisabled = false; if (form.ispatch.checked) isdisabled = true; for (var i=0 ; i