-replaceIssueFormWith('<%= escape_javascript(render :partial => 'edit') %>');
+replaceIssueFormWith('<%= escape_javascript(render :partial => 'form') %>');
+<% if User.current.allowed_to?(:log_time, @issue.project) %>
+ $('#log_time').show();
+<% else %>
+ $('#log_time').hide();
+<% end %>
replacement.find('#'+object_id).val($(this).val());
}
});
-
- if ($('form.new_issue').length > 0) {
- $('#all_attributes').empty();
- $('#all_attributes').prepend(replacement);
- } else {
- $('#issue-form').replaceWith(replacement);
- }
+ $('#all_attributes').empty();
+ $('#all_attributes').prepend(replacement);
}
function updateBulkEditFrom(url) {