diff options
author | myk%mozilla.org <> | 2001-10-26 05:37:50 +0200 |
---|---|---|
committer | myk%mozilla.org <> | 2001-10-26 05:37:50 +0200 |
commit | a87a5b411b4f173a7b1de2b919e71335306349ed (patch) | |
tree | fb0f27f18007cacb84f677178b47aef429f5047b /template/default/attachment/edit.atml | |
parent | 3a866ab78f91873f42a13710f299bcb0f176b49c (diff) | |
download | bugzilla-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-x | template/default/attachment/edit.atml | 7 |
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>$/ , "" ); |