summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2009-05-29 02:59:39 +0200
committerbbaetz%acm.org <>2009-05-29 02:59:39 +0200
commit405e90c5d5ef383f1034e64ad3780d0e012a8927 (patch)
tree57ab7ad1c80aad57ddfe20c8cfd08aff57bed36b /js
parent3caf30c1d8b45aa1e5b49ddb094ea6e7cd8c613f (diff)
downloadbugzilla-405e90c5d5ef383f1034e64ad3780d0e012a8927.tar.gz
bugzilla-405e90c5d5ef383f1034e64ad3780d0e012a8927.tar.xz
Bug 494751 - Toggling Add/Don't add attachment doesn't reset JS state
r/a=mkanat
Diffstat (limited to 'js')
-rw-r--r--js/attachment.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/attachment.js b/js/attachment.js
index c05d1d3ea..254331679 100644
--- a/js/attachment.js
+++ b/js/attachment.js
@@ -100,7 +100,12 @@ function clearAttachmentFields() {
URLFieldHandler();
}
document.getElementById('description').value = '';
- document.getElementById('ispatch').checked = '';
+ /* Fire onchange so that the disabled state of the content-type
+ * radio buttons are also reset
+ */
+ element = document.getElementById('ispatch');
+ element.checked = '';
+ bz_fireEvent(element, 'change');
if ((element = document.getElementById('isprivate')))
element.checked = '';
}