Skip to content

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/views/issues/_action_menu.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
:onclick => 'showAndScrollToAddNotes(); return false;',
44
:class => 'icon icon-add' if @issue.editable? %>
55
<%= link_to l(:button_edit), edit_issue_path(@issue),
6-
:onclick => 'showAndScrollTo("update", "issue_notes"); return false;',
6+
:onclick => 'showAndScrollToEditIssue("update", "issue_notes"); return false;',
77
:class => 'icon icon-edit', :accesskey => accesskey(:edit) if @issue.editable? %>
88
<%= link_to l(:button_log_time), new_issue_time_entry_path(@issue),
99
:class => 'icon icon-time-add' if User.current.allowed_to?(:log_time, @project) %>

app/views/issues/_edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<%= submit_tag l(:button_submit) %>
7575
<%= link_to(
7676
l(:button_cancel), issue_path(id: @issue.id),
77-
:onclick => params[:action] == 'show' ? "$('#update').hide(); return false;" : ''
77+
:onclick => params[:action] == 'show' ? "window.location.reload();" : ''
7878
) %>
7979
<%= hidden_field_tag 'prev_issue_id', @prev_issue_id if @prev_issue_id %>
8080
<%= hidden_field_tag 'next_issue_id', @next_issue_id if @next_issue_id %>

public/javascripts/application.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ function showAndScrollTo(id, focus) {
2929

3030
function showAndScrollToEditIssue() {
3131
$('#update h3').show();
32-
$('#attributes').show();
33-
$('#log_time').show();
32+
$('#attributes').show(); $('#attributes input, #attributes select').prop('disabled', false)
33+
$('#log_time').show(); $('#log_time input, #log_time select').prop('disabled', false)
3434
showAndScrollTo('update', 'issue_notes');
3535
}
3636

3737
function showAndScrollToAddNotes() {
3838
$('#update h3').hide();
39-
$('#attributes').hide();
40-
$('#log_time').hide();
39+
$('#attributes').hide();$('#attributes input, #attributes select').prop('disabled', true)
40+
$('#log_time').hide();$('#log_time input, #log_time select').prop('disabled', true)
4141
showAndScrollTo('update', 'issue_notes');
4242
}
4343

0 commit comments

Comments
 (0)