Reformat js

openid
Marcin Kulik 13 years ago
parent b56d57c14d
commit d7ebfac783

@ -32,13 +32,13 @@
</div>
<script type="text/javascript">
jQuery( function(){
var comments = new AsciiIo.Collections.Comments();
var asciicast_id = <%= @asciicast.id %>
$(function() {
var comments = new AsciiIo.Collections.Comments();
var asciicast_id = <%= @asciicast.id %>
comments.url = ['/api/asciicasts/', asciicast_id, '/comments'].join('');
comments.fetch();
comments.url = ['/api/asciicasts/', asciicast_id, '/comments'].join('');
comments.fetch();
new AsciiIo.Views.CommentsIndex({ collection: comments });
})
</script>
new AsciiIo.Views.CommentsIndex({ collection: comments });
})
</script>

Loading…
Cancel
Save