Commit 47d02944 authored by timeless%mozdev.org's avatar timeless%mozdev.org

Bug 387607 detect and accommodate restored "edit attachment as comment" mode

r=myk a=mkanat
parent 3d22bf91
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
// Copy the contents of the diff into the textarea // Copy the contents of the diff into the textarea
var editFrame = document.getElementById('editFrame'); var editFrame = document.getElementById('editFrame');
if (editFrame.value.test(/^\s*$/m))
editFrame.value = theContent + "\n\n"; editFrame.value = theContent + "\n\n";
has_edited = 1; has_edited = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment