Fix: ensure input element exists even if it initially has no value.

reddit.js will insert a value in this element, so it must exist. Without
it, things like message replies break.
This commit is contained in:
Jason Harvey
2013-10-16 17:07:38 -07:00
parent 21d4f41476
commit 5ce5d303e3

View File

@@ -116,10 +116,8 @@
<div class="${thing.css_class}">
%endif
%if thing.fullname:
##this is set for both editting selftext and creating new comments
<input type="hidden" name="thing_id" value="${thing.fullname}"/>
%endif
##this is set for both editting selftext and creating new comments
<input type="hidden" name="thing_id" value="${thing.fullname}"/>
%if not thing.creating:
<div class="usertext-body">