Fix some bugs + add primary comment support

This commit is contained in:
2012-10-11 22:26:47 +02:00
parent 76cda68611
commit 01685868e2
6 changed files with 95 additions and 54 deletions

View File

@@ -9,7 +9,7 @@
{% endblock %}
{% block content %}
<form id="previewForm" action="/post/edit/{{ blog_id }}" method="post">{% csrf_token %}
<form id="previewForm" action="/post/edit/{{ post_id }}" method="post">{% csrf_token %}
{{ form.as_p }}
<textarea name="content" class="mceAdvanced">{{ content }}</textarea>
<input type="submit" name="edit" value="Edit" /><input type="button" name="preview" value="Preview" onClick="previewPost();"/><input type="submit" name="cancel" value="Cancel" />