Commits

Italo Maia committed d6c4d74

fix for new_thread template (markitup mostly)

Comments (0)

Files changed (1)

forum/templates/forum/new_thread.html

 {% extends "forum/base.html" %}
 {% load i18n %}
 
-{% block extra-css %}
+{% block styles %}
+{{ block.super }}
 <link rel="stylesheet" type="text/css"
-        href='{{ MEDIA_URL }}markitup/skins/simple/style.css' media="screen, projection" />
+        href='{{ STATIC_URL }}js/markitup/skins/simple/style.css' media="screen, projection" />
 <link rel="stylesheet" type="text/css"
-        href='{{ MEDIA_URL }}markitup/sets/bbcode/style.css' media="screen, projection" />
+        href='{{ STATIC_URL }}js/markitup/sets/bbcode/style.css' media="screen, projection" />
 {% endblock %}
 
-{% block extra-js %}
-<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.4.2.min.js"></script>
-<script type="text/javascript" src="{{ MEDIA_URL }}markitup/jquery.markitup.js"></script>
-<script type="text/javascript" src="{{ MEDIA_URL }}markitup/sets/bbcode/set.js"></script>
+{% block scripts %}
+{{ block.super }}
+<script type="text/javascript" src="{{ STATIC_URL }}js/markitup/jquery.markitup.js"></script>
+<script type="text/javascript" src="{{ STATIC_URL }}js/markitup/sets/bbcode/set.js"></script>
 <script type="text/javascript">
 $(document).ready(function(){
-    $('#id_raw').markItUp(mySettings);
+    $('textarea').markItUp(mySettings);
 });
 </script>
 {% endblock %}
 {{ reply_form.non_field_errors }}
 </div>
 {% endif %}
-<h2>New thread for <a href="{{ forum.get_absolute_url }}">{{ forum }}</a></h2>
+<strong>New thread for <a href="{{ forum.get_absolute_url }}">{{ forum }}</a></strong>
 
 <form method="post" enctype="multipart/form-data">{% csrf_token %}
 {% with thread_form as form %}