summaryrefslogtreecommitdiffstats
path: root/template/default/attachment/edit.atml
diff options
context:
space:
mode:
authormyk%mozilla.org <>2001-10-26 05:37:50 +0200
committermyk%mozilla.org <>2001-10-26 05:37:50 +0200
commita87a5b411b4f173a7b1de2b919e71335306349ed (patch)
treefb0f27f18007cacb84f677178b47aef429f5047b /template/default/attachment/edit.atml
parent3a866ab78f91873f42a13710f299bcb0f176b49c (diff)
downloadbugzilla-a87a5b411b4f173a7b1de2b919e71335306349ed.tar.gz
bugzilla-a87a5b411b4f173a7b1de2b919e71335306349ed.tar.xz
Fix for bug 98602: re-implementation of "create attachment" page.
Patch by Myk Melez <myk@mozilla.org>. r=gerv@mozilla.org,jake@acutex.net
Diffstat (limited to 'template/default/attachment/edit.atml')
-rwxr-xr-xtemplate/default/attachment/edit.atml7
1 files changed, 4 insertions, 3 deletions
diff --git a/template/default/attachment/edit.atml b/template/default/attachment/edit.atml
index 5981a692f..ac9f327d0 100755
--- a/template/default/attachment/edit.atml
+++ b/template/default/attachment/edit.atml
@@ -19,6 +19,7 @@
<form method="post" action="attachment.cgi" onsubmit="normalizeComments();">
<input type="hidden" name="id" value="[% attachid %]">
<input type="hidden" name="action" value="update">
+ <input type="hidden" name="contenttypemethod" value="manual">
<table width="100%">
@@ -29,7 +30,7 @@
<textarea rows="3" cols="25" name="description" wrap="soft">[% description %]</textarea><br>
<b>MIME Type:</b><br>
- <input type="text" size="20" name="mimetype" value="[% mimetype %]"><br>
+ <input type="text" size="20" name="contenttypeentry" value="[% contenttype %]"><br>
<b>Flags:</b><br>
<input type="checkbox" name="ispatch" value="1"[% " checked" IF ispatch %]>patch
@@ -100,8 +101,8 @@
// If this is a plaintext document, remove cruft that Mozilla adds
// because it treats it as an HTML document with a big PRE section.
// http://bugzilla.mozilla.org/show_bug.cgi?id=86012
- var mimeType = '[% mimetype %]';
- if ( mimeType == 'text/plain' )
+ var contentType = '[% contenttype %]';
+ if ( contentType == 'text/plain' )
{
theContent = theContent.replace( /^<html><head\/><body><pre>/ , "" );
theContent = theContent.replace( /<\/pre><\/body><\/html>$/ , "" );