From 405e90c5d5ef383f1034e64ad3780d0e012a8927 Mon Sep 17 00:00:00 2001
From: "bbaetz%acm.org" <>
Date: Fri, 29 May 2009 00:59:39 +0000
Subject: Bug 494751 - Toggling Add/Don't add attachment doesn't reset JS state
r/a=mkanat
---
template/en/default/attachment/create.html.tmpl | 3 +--
template/en/default/attachment/createformcontents.html.tmpl | 6 ++++++
2 files changed, 7 insertions(+), 2 deletions(-)
(limited to 'template/en')
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl
index 10648159b..687cd7cbf 100644
--- a/template/en/default/attachment/create.html.tmpl
+++ b/template/en/default/attachment/create.html.tmpl
@@ -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"
%]
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 @@
+ [%# Reset this whenever the page loads so that the JS state is up to date %]
+
Otherwise, choose a method for determining the content type.