aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin
diff options
context:
space:
mode:
authorJef van Schendel <mail@jefvanschendel.nl>2012-01-01 22:58:32 +0100
committerJef van Schendel <mail@jefvanschendel.nl>2012-01-01 22:58:32 +0100
commitada0642e5a619a3dce4050db535eb065e0cdc798 (patch)
treec6146e0300b50f2dc7c6b69be97ec795436b37ad /mediagoblin
parent445d811043c5cb8b801b91604da6e3967d7ba3b7 (diff)
downloadmediagoblin-ada0642e5a619a3dce4050db535eb065e0cdc798.tar.lz
mediagoblin-ada0642e5a619a3dce4050db535eb065e0cdc798.tar.xz
mediagoblin-ada0642e5a619a3dce4050db535eb065e0cdc798.zip
Seperate jQuery bit that was still in media.html
Diffstat (limited to 'mediagoblin')
-rw-r--r--mediagoblin/static/js/comment_show.js9
-rw-r--r--mediagoblin/templates/mediagoblin/user_pages/media.html13
2 files changed, 11 insertions, 11 deletions
diff --git a/mediagoblin/static/js/comment_show.js b/mediagoblin/static/js/comment_show.js
new file mode 100644
index 00000000..2212b9ad
--- /dev/null
+++ b/mediagoblin/static/js/comment_show.js
@@ -0,0 +1,9 @@
+$(document).ready(function(){
+ $('#form_comment').hide();
+ $('#button_addcomment').click(function(){
+ $(this).fadeOut('fast');
+ $('#form_comment').slideDown(function(){
+ $('#comment_content').focus();
+ });
+ });
+});
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html
index 4c255112..ca650f63 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media.html
@@ -23,17 +23,8 @@
{% block title %}{{ media.title }} &mdash; {{ super() }}{% endblock %}
{% block mediagoblin_head %}
- <script>
- $(document).ready(function(){
- $('#form_comment').hide();
- $('#button_addcomment').click(function(){
- $(this).fadeOut('fast');
- $('#form_comment').slideDown(function(){
- $('#comment_content').focus();
- });
- });
- });
- </script>
+ <script type="text/javascript"
+ src="{{ request.staticdirect('/js/comment_show.js') }}"></script>
{% endblock mediagoblin_head %}
{% block mediagoblin_content %}