diff options
author | timeless%mozdev.org <> | 2007-08-24 09:45:17 +0000 |
---|---|---|
committer | timeless%mozdev.org <> | 2007-08-24 09:45:17 +0000 |
commit | 47d029440441509d18026a9bc38b3e6da89d0bbf (patch) | |
tree | 5c8a6190fa80026c96893a9f3e6b78645f2f09ff | |
parent | 3d22bf91f2732c58ca910c9b05279df118374389 (diff) | |
download | bugs-47d029440441509d18026a9bc38b3e6da89d0bbf.tar bugs-47d029440441509d18026a9bc38b3e6da89d0bbf.tar.gz bugs-47d029440441509d18026a9bc38b3e6da89d0bbf.tar.bz2 bugs-47d029440441509d18026a9bc38b3e6da89d0bbf.tar.xz bugs-47d029440441509d18026a9bc38b3e6da89d0bbf.zip |
Bug 387607 detect and accommodate restored "edit attachment as comment" mode
r=myk a=mkanat
-rw-r--r-- | template/en/default/attachment/edit.html.tmpl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl index ffa53493d..90ce7ce84 100644 --- a/template/en/default/attachment/edit.html.tmpl +++ b/template/en/default/attachment/edit.html.tmpl @@ -79,7 +79,8 @@ // Copy the contents of the diff into the textarea var editFrame = document.getElementById('editFrame'); - editFrame.value = theContent + "\n\n"; + if (editFrame.value.test(/^\s*$/m)) + editFrame.value = theContent + "\n\n"; has_edited = 1; } |