diff options
author | bbaetz%acm.org <> | 2009-05-29 00:59:39 +0000 |
---|---|---|
committer | bbaetz%acm.org <> | 2009-05-29 00:59:39 +0000 |
commit | 405e90c5d5ef383f1034e64ad3780d0e012a8927 (patch) | |
tree | 57ab7ad1c80aad57ddfe20c8cfd08aff57bed36b /template/en/default/attachment/createformcontents.html.tmpl | |
parent | 3caf30c1d8b45aa1e5b49ddb094ea6e7cd8c613f (diff) | |
download | bugs-405e90c5d5ef383f1034e64ad3780d0e012a8927.tar bugs-405e90c5d5ef383f1034e64ad3780d0e012a8927.tar.gz bugs-405e90c5d5ef383f1034e64ad3780d0e012a8927.tar.bz2 bugs-405e90c5d5ef383f1034e64ad3780d0e012a8927.tar.xz bugs-405e90c5d5ef383f1034e64ad3780d0e012a8927.zip |
Bug 494751 - Toggling Add/Don't add attachment doesn't reset JS state
r/a=mkanat
Diffstat (limited to 'template/en/default/attachment/createformcontents.html.tmpl')
-rw-r--r-- | template/en/default/attachment/createformcontents.html.tmpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/template/en/default/attachment/createformcontents.html.tmpl b/template/en/default/attachment/createformcontents.html.tmpl index 2fc80a518..2cef632d1 100644 --- a/template/en/default/attachment/createformcontents.html.tmpl +++ b/template/en/default/attachment/createformcontents.html.tmpl @@ -70,6 +70,12 @@ <input type="checkbox" id="ispatch" name="ispatch" value="1" onchange="setContentTypeDisabledState(this.form);"> <label for="ispatch">patch</label><br><br> + [%# Reset this whenever the page loads so that the JS state is up to date %] + <script type="text/javascript"> + YAHOO.util.Event.onDOMReady(function() { + bz_fireEvent(document.getElementById('ispatch'), 'change'); + }); + </script> <em>Otherwise, choose a method for determining the content type.</em><br> <input type="radio" id="autodetect" |