Sha256: 2d0d993e0ca770c81a370170694c5eb7488642e337c76c1f3574e1c59a4788b5

Contents?: true

Size: 398 Bytes

Versions: 49

Compression:

Stored size: 398 Bytes

Contents

<% if @comment.errors.any? %>
  $("#new_comment").replaceWith('<%=j render 'form', comment: @comment %>')
<% else %>
  $("#new_comment").replaceWith('<%=j render 'form', comment: Comment.new(ticket_id: params[:comment][:ticket_id]) %>')
  $(".ticket[data-ticket-id=<%= @ticket.id %>] > #activities")
    .prepend('<%=j render 'tickets/activity', ticket: @ticket, activity: @activity %>')
<% end %>

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
tawork-0.0.9 app/views/comments/create.js.coffee
tawork-0.0.8 app/views/comments/create.js.coffee
tawork-0.0.7 app/views/comments/create.js.coffee
tawork-0.0.6 app/views/comments/create.js.coffee
tawork-0.0.5 app/views/comments/create.js.coffee
tawork-0.0.4 app/views/comments/create.js.coffee
tawork-0.0.3 app/views/comments/create.js.coffee
tawork-0.0.2 app/views/comments/create.js.coffee
tawork-0.0.1 app/views/comments/create.js.coffee