Revert changes made to issue form update in r21495 (#37053).

git-svn-id: https://svn.redmine.org/redmine/trunk@21578 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2022-05-16 19:38:11 +00:00
parent 1eeb7e50ac
commit 5d830c892d
2 changed files with 8 additions and 8 deletions

View File

@@ -1 +1,6 @@
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 %>

View File

@@ -622,13 +622,8 @@ function replaceIssueFormWith(html){
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);
}
}
function updateBulkEditFrom(url) {