From a87a5b411b4f173a7b1de2b919e71335306349ed Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Fri, 26 Oct 2001 03:37:50 +0000 Subject: Fix for bug 98602: re-implementation of "create attachment" page. Patch by Myk Melez . r=gerv@mozilla.org,jake@acutex.net --- template/default/attachment/edit.atml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'template/default/attachment/edit.atml') 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 @@
+ @@ -29,7 +30,7 @@
MIME Type:
-
+
Flags:
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( /^
/ , "" );
           theContent = theContent.replace( /<\/pre><\/body><\/html>$/ , "" );
-- 
cgit v1.2.3-24-g4f1b