Sha256: 83592ed9676ffab5e94e711f35070613489312aed1e5f61fa8c8e55c2225c2fe
Contents?: true
Size: 681 Bytes
Versions: 13
Compression:
Stored size: 681 Bytes
Contents
- class_name = @comment.commentable.class.name.underscore - id_prefix = "#{class_name}_#{@comment.commentable.id}" - if @comment.valid? $('##{id_prefix}_comment_new').after('#{ j (render partial: "comment", locals: { comment: @comment }) }'); $('##{dom_id(@comment)}').effect("highlight", { duration:1500 }); $('##{id_prefix}_post').hide(); $('##{id_prefix}_ask').show(); $('##{id_prefix}_shown_notes').val('#{ j @comment.commentable.comment_ids.join(',') }'); $('##{id_prefix}_comment_comment').val(''); $('##{id_prefix}_comment_comment').focus(); $('##{id_prefix}_post').find('form [type=submit]').removeAttr("disabled") $('##{id_prefix}_post').find('.spinner').hide()
Version data entries
13 entries across 13 versions & 1 rubygems