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.50 app/views/comments/create.js.coffee
tawork-0.0.49 app/views/comments/create.js.coffee
tawork-0.0.48 app/views/comments/create.js.coffee
tawork-0.0.47 app/views/comments/create.js.coffee
tawork-0.0.46 app/views/comments/create.js.coffee
tawork-0.0.45 app/views/comments/create.js.coffee
tawork-0.0.44 app/views/comments/create.js.coffee
tawork-0.0.43 app/views/comments/create.js.coffee
tawork-0.0.42 app/views/comments/create.js.coffee
tawork-0.0.41 app/views/comments/create.js.coffee
tawork-0.0.40 app/views/comments/create.js.coffee
tawork-0.0.39 app/views/comments/create.js.coffee
tawork-0.0.38 app/views/comments/create.js.coffee
tawork-0.0.37 app/views/comments/create.js.coffee
tawork-0.0.36 app/views/comments/create.js.coffee
tawork-0.0.35 app/views/comments/create.js.coffee
tawork-0.0.34 app/views/comments/create.js.coffee
tawork-0.0.33 app/views/comments/create.js.coffee
tawork-0.0.31 app/views/comments/create.js.coffee
tawork-0.0.30 app/views/comments/create.js.coffee