Permalink
Browse files

added .rvmrc to gitignore, fixed a few syntax typos

  • Loading branch information...
1 parent f95c9b5 commit 445506881f9fac6867aba905614910b0ec13694d Pavel Kotlyar committed Mar 27, 2012
Showing with 11 additions and 10 deletions.
  1. +1 −0 .gitignore
  2. +6 −6 app/views/opinio/comments/create.js.erb
  3. +4 −4 app/views/opinio/comments/reply.js.erb
View
@@ -7,3 +7,4 @@ spec/dummy/log/*.log
spec/dummy/tmp/
*.swp
*.gem
+.rvmrc
@@ -1,13 +1,13 @@
-$('#no_comments').fadeOut()
+$('#no_comments').fadeOut();
<% if @comment.valid? %>
<% if @reply %>
if($('#comment_<%= @comment.commentable_id %> ul').length == 0)
- $('#comment_<%= @comment.commentable_id %>').append('<ul id="comment_<%= @comment.commentable_id %>_replies" class="replies"></ul>')
- $('#comment_<%= @comment.commentable_id %>_replies').append("<%= escape_javascript( render @comment, :locals => {:reply => @reply} ) %>")
- $('#commentable_id').val('<%= @comment.commentable.commentable_id %>')
- $('#commentable_type').val('<%= @comment.commentable.commentable_type %>')
+ $('#comment_<%= @comment.commentable_id %>').append('<ul id="comment_<%= @comment.commentable_id %>_replies" class="replies"></ul>');
+ $('#comment_<%= @comment.commentable_id %>_replies').append("<%= escape_javascript( render @comment, :locals => {:reply => @reply} ) %>");
+ $('#commentable_id').val('<%= @comment.commentable.commentable_id %>');
+ $('#commentable_type').val('<%= @comment.commentable.commentable_type %>');
<% else %>
- $('#comments').prepend("<%= escape_javascript( render @comment, :locals => {:reply => @reply} ) %>")
+ $('#comments').prepend("<%= escape_javascript( render @comment, :locals => {:reply => @reply} ) %>");
<% end %>
<% else %>
$('#comments').prepend("<%= escape_javascript(flash[:notice]) %>");
@@ -1,4 +1,4 @@
-$("#commentable_id").val('<%= @commentable_id %>')
-$("#commentable_type").val('<%= @commentable_type %>')
-$("#new_comment textarea").val('')
-$("#new_comment textarea").focus()
+$("#commentable_id").val('<%= @commentable_id %>');
+$("#commentable_type").val('<%= @commentable_type %>');
+$("#new_comment textarea").val('');
+$("#new_comment textarea").focus();

0 comments on commit 4455068

Please sign in to comment.