Seperate jQuery bit that was still in media.html

This commit is contained in:
Jef van Schendel 2012-01-01 22:58:32 +01:00
parent 445d811043
commit ada0642e5a
2 changed files with 11 additions and 11 deletions

View File

@ -0,0 +1,9 @@
$(document).ready(function(){
$('#form_comment').hide();
$('#button_addcomment').click(function(){
$(this).fadeOut('fast');
$('#form_comment').slideDown(function(){
$('#comment_content').focus();
});
});
});

View File

@ -23,17 +23,8 @@
{% block title %}{{ media.title }} — {{ 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 %}