Fix bug in markdown preview of new objects
authorMagnus Hagander <magnus@hagander.net>
Tue, 16 Mar 2021 17:19:53 +0000 (18:19 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 16 Mar 2021 17:27:01 +0000 (18:27 +0100)
commit78cf5fa770776c88688cf19c83fdf12831c20cc0
treefc15f826c948b3ccf59fdfcf23c690aa8016f9cd
parent20e970f0d4f2108c49fd15755c01c2575f265da9
Fix bug in markdown preview of new objects

Whens submitting a new object, the instructions for how to do markdown
didn't show up until after the object had been saved once.

This turns out to be because the performance optimization to take an
empty string markdown and turn it into an empty string html wrote the
(empty) result to the wrong field, thereby overwriting the instructions.
media/js/markdown_preview.js