diff options
author | timeless%mozdev.org <> | 2007-08-24 11:45:17 +0200 |
---|---|---|
committer | timeless%mozdev.org <> | 2007-08-24 11:45:17 +0200 |
commit | 47d029440441509d18026a9bc38b3e6da89d0bbf (patch) | |
tree | 5c8a6190fa80026c96893a9f3e6b78645f2f09ff /template | |
parent | 3d22bf91f2732c58ca910c9b05279df118374389 (diff) | |
download | bugzilla-47d029440441509d18026a9bc38b3e6da89d0bbf.tar.gz bugzilla-47d029440441509d18026a9bc38b3e6da89d0bbf.tar.xz |
Bug 387607 detect and accommodate restored "edit attachment as comment" mode
r=myk a=mkanat
Diffstat (limited to 'template')
-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; } |