##// END OF EJS Templates
Moved panel.js loading from head to the form
neko259 -
r445:495f7195 default
parent child Browse files
Show More
@@ -26,7 +26,6 b''
26 <script src="{% static 'js/jquery-ui-1.10.3.custom.min.js' %}"></script>
26 <script src="{% static 'js/jquery-ui-1.10.3.custom.min.js' %}"></script>
27 <script src="{% static 'js/jquery.mousewheel.js' %}"></script>
27 <script src="{% static 'js/jquery.mousewheel.js' %}"></script>
28 <script src="{% url 'js_info_dict' %}"></script>
28 <script src="{% url 'js_info_dict' %}"></script>
29 <script src="{% static 'js/panel.js' %}"></script>
30 <script src="{% static 'js/popup.js' %}"></script>
29 <script src="{% static 'js/popup.js' %}"></script>
31 <script src="{% static 'js/image.js' %}"></script>
30 <script src="{% static 'js/image.js' %}"></script>
32 <script src="{% static 'js/refpopup.js' %}"></script>
31 <script src="{% static 'js/refpopup.js' %}"></script>
@@ -170,15 +170,15 b''
170 {{ post.text.rendered|truncatewords_html:50 }}
170 {{ post.text.rendered|truncatewords_html:50 }}
171 {% endautoescape %}
171 {% endautoescape %}
172 </div>
172 </div>
173 {% if post.is_referenced %}
173 {% if post.is_referenced %}
174 <div class="refmap">
174 <div class="refmap">
175 {% trans "Replies" %}:
175 {% trans "Replies" %}:
176 {% for ref_post in post.get_sorted_referenced_posts %}
176 {% for ref_post in post.get_sorted_referenced_posts %}
177 <a href="{% post_url ref_post.id %}">&gt;&gt;{{ ref_post.id }}</a
177 <a href="{% post_url ref_post.id %}">&gt;&gt;{{ ref_post.id }}</a
178 >{% if not forloop.last %},{% endif %}
178 >{% if not forloop.last %},{% endif %}
179 {% endfor %}
179 {% endfor %}
180 </div>
180 </div>
181 {% endif %}
181 {% endif %}
182 </div>
182 </div>
183 {% endfor %}
183 {% endfor %}
184 </div>
184 </div>
@@ -204,6 +204,7 b''
204 {% endif %}
204 {% endif %}
205
205
206 <div class="post-form-w">
206 <div class="post-form-w">
207 <script src="{% static 'js/panel.js' %}"></script>
207 <div class="post-form">
208 <div class="post-form">
208 <div class="form-title">{% trans "Create new thread" %}</div>
209 <div class="form-title">{% trans "Create new thread" %}</div>
209 <form enctype="multipart/form-data" method="post">{% csrf_token %}
210 <form enctype="multipart/form-data" method="post">{% csrf_token %}
@@ -94,6 +94,7 b''
94 {% endcache %}
94 {% endcache %}
95
95
96 <div class="post-form-w">
96 <div class="post-form-w">
97 <script src="{% static 'js/panel.js' %}"></script>
97 <div class="form-title">{% trans "Reply to thread" %} #{{ thread.get_opening_post.id }}</div>
98 <div class="form-title">{% trans "Reply to thread" %} #{{ thread.get_opening_post.id }}</div>
98 <div class="post-form">
99 <div class="post-form">
99 <form id="form" enctype="multipart/form-data" method="post"
100 <form id="form" enctype="multipart/form-data" method="post"
General Comments 0
You need to be logged in to leave comments. Login now