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.29 app/views/comments/create.js.coffee
tawork-0.0.28 app/views/comments/create.js.coffee
tawork-0.0.27 app/views/comments/create.js.coffee
tawork-0.0.26 app/views/comments/create.js.coffee
tawork-0.0.25 app/views/comments/create.js.coffee
tawork-0.0.24 app/views/comments/create.js.coffee
tawork-0.0.23 app/views/comments/create.js.coffee
tawork-0.0.22 app/views/comments/create.js.coffee
tawork-0.0.21 app/views/comments/create.js.coffee
tawork-0.0.20 app/views/comments/create.js.coffee
tawork-0.0.19 app/views/comments/create.js.coffee
tawork-0.0.18 app/views/comments/create.js.coffee
tawork-0.0.17 app/views/comments/create.js.coffee
tawork-0.0.16 app/views/comments/create.js.coffee
tawork-0.0.15 app/views/comments/create.js.coffee
tawork-0.0.14 app/views/comments/create.js.coffee
tawork-0.0.13 app/views/comments/create.js.coffee
tawork-0.0.12 app/views/comments/create.js.coffee
tawork-0.0.11 app/views/comments/create.js.coffee
tawork-0.0.10 app/views/comments/create.js.coffee