Permalink
Browse files

Fix review draft when screenshot comments are included

There was a JavaScript error that was caused by commenting on a
screenshot, due to a missing "issue opened" checkbox on the review page.
This introduces the checkbox.

Reviewed at http://reviews.reviewboard.org/r/3257/
  • Loading branch information...
1 parent f4093e1 commit 9eaf63fbb92d1c16fa4ac0936859d2340aad595d @bogdanap bogdanap committed with chipx86 Aug 2, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 reviewboard/templates/reviews/review_draft_inline_form.html
View
3 reviewboard/templates/reviews/review_draft_inline_form.html
@@ -20,7 +20,8 @@
</dt>
<dd>
<pre class="editable comment-editable" id="screenshot-comment-{{comment.id}}">{{comment.text|escape}}</pre>
-
+ <input type="checkbox" id="comment-issue-{{comment.id}}" {% if comment.issue_opened %}checked="checked"{% endif %}/>
+ <label for="comment-issue-{{comment.id}}">Open an issue</label>
{% comment %}
<!-- We'll want to do this eventually... Need to make it work in a
non-instant-apply world. -->

0 comments on commit 9eaf63f

Please sign in to comment.