You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

edit.js.erb 377B

1234567891011121314
  1. replaceIssueFormWith('<%= escape_javascript(render :partial => 'form') %>');
  2. <% if User.current.allowed_to?(:log_time, @issue.project) %>
  3. $('#log_time').show();
  4. <% else %>
  5. $('#log_time').hide();
  6. <% end %>
  7. <% if @issue.notes_addable? %>
  8. $('#add_notes').show();
  9. $('#add_attachments').show();
  10. <% else %>
  11. $('#add_notes').hide();
  12. $('#add_attachments').hide();
  13. <% end %>