Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added .rvmrc to gitignore, fixed a few syntax typos

  • Loading branch information...
commit 445506881f9fac6867aba905614910b0ec13694d 1 parent f95c9b5
Pavel Kotlyar authored
View
1  .gitignore
@@ -7,3 +7,4 @@ spec/dummy/log/*.log
spec/dummy/tmp/
*.swp
*.gem
+.rvmrc
View
12 app/views/opinio/comments/create.js.erb
@@ -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]) %>");
View
8 app/views/opinio/comments/reply.js.erb
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.