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

Version Path
fat_free_crm-0.22.1 app/views/comments/create.js.haml
fat_free_crm-0.22.0 app/views/comments/create.js.haml
fat_free_crm-0.21.0 app/views/comments/create.js.haml
fat_free_crm-0.20.1 app/views/comments/create.js.haml
fat_free_crm-0.20.0 app/views/comments/create.js.haml
fat_free_crm-0.19.2 app/views/comments/create.js.haml
fat_free_crm-0.19.0 app/views/comments/create.js.haml
fat_free_crm-0.18.2 app/views/comments/create.js.haml
fat_free_crm-0.17.3 app/views/comments/create.js.haml
fat_free_crm-0.18.1 app/views/comments/create.js.haml
fat_free_crm-0.18.0 app/views/comments/create.js.haml
fat_free_crm-0.17.2 app/views/comments/create.js.haml
fat_free_crm-0.17.1 app/views/comments/create.js.haml