Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
405e90c5
Commit
405e90c5
authored
May 29, 2009
by
bbaetz%acm.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 494751 - Toggling Add/Don't add attachment doesn't reset JS state
r/a=mkanat
parent
3caf30c1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
attachment.js
js/attachment.js
+6
-1
create.html.tmpl
template/en/default/attachment/create.html.tmpl
+1
-2
createformcontents.html.tmpl
template/en/default/attachment/createformcontents.html.tmpl
+6
-0
No files found.
js/attachment.js
View file @
405e90c5
...
...
@@ -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
=
''
;
}
...
...
template/en/default/attachment/create.html.tmpl
View file @
405e90c5
...
...
@@ -33,9 +33,8 @@
title = title
header = header
subheader = subheader
onload="setContentTypeDisabledState(document.entryform);"
style_urls = [ 'skins/standard/create_attachment.css' ]
javascript_urls = [ "js/attachment.js" ]
javascript_urls = [ "js/attachment.js"
, "js/util.js"
]
doc_section = "attachments.html"
%]
...
...
template/en/default/attachment/createformcontents.html.tmpl
View file @
405e90c5
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment