summaryrefslogtreecommitdiffstats
path: root/app/views/issues/edit.js.erb
blob: e953368243f7fe6109af5a401241ab29524b6de7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 %>