aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortimeless%mozdev.org <>2007-08-24 09:45:18 +0000
committertimeless%mozdev.org <>2007-08-24 09:45:18 +0000
commit0505bc8444cb49cb16ef128bd4fae40cf8a54b2a (patch)
treee6aafdacc66971aaac55d83d716f96066752e304
parentBug 391945 Staggered headers don't check dotweak properly (diff)
downloadbugzilla-0505bc8444cb49cb16ef128bd4fae40cf8a54b2a.tar.gz
bugzilla-0505bc8444cb49cb16ef128bd4fae40cf8a54b2a.tar.bz2
bugzilla-0505bc8444cb49cb16ef128bd4fae40cf8a54b2a.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.tmpl3
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 94581ab56..6ac7e44aa 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -82,7 +82,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;
}