1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-25 09:51:14 +00:00
redmine/app/views/issues/edit.js.erb

14 lines
377 B
Plaintext

replaceIssueFormWith('<%= escape_javascript(render :partial => 'form') %>');
<% if User.current.allowed_to?(:log_time, @issue.project) %>
$('#log_time').show();
<% else %>
$('#log_time').hide();
<% end %>
<% if @issue.notes_addable? %>
$('#add_notes').show();
$('#add_attachments').show();
<% else %>
$('#add_notes').hide();
$('#add_attachments').hide();
<% end %>