Seperate jQuery bit that was still in media.html
This commit is contained in:
parent
445d811043
commit
ada0642e5a
9
mediagoblin/static/js/comment_show.js
Normal file
9
mediagoblin/static/js/comment_show.js
Normal 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();
|
||||
});
|
||||
});
|
||||
});
|
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user