File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3
3
:onclick => 'showAndScrollToAddNotes(); return false;' ,
4
4
:class => 'icon icon-add' if @issue . editable? %>
5
5
<%= 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;' ,
7
7
:class => 'icon icon-edit' , :accesskey => accesskey ( :edit ) if @issue . editable? %>
8
8
<%= link_to l ( :button_log_time ) , new_issue_time_entry_path ( @issue ) ,
9
9
:class => 'icon icon-time-add' if User . current . allowed_to? ( :log_time , @project ) %>
Original file line number Diff line number Diff line change 74
74
<%= submit_tag l ( :button_submit ) %>
75
75
<%= link_to (
76
76
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() ;" : ''
78
78
) %>
79
79
<%= hidden_field_tag 'prev_issue_id' , @prev_issue_id if @prev_issue_id %>
80
80
<%= hidden_field_tag 'next_issue_id' , @next_issue_id if @next_issue_id %>
Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ function showAndScrollTo(id, focus) {
29
29
30
30
function showAndScrollToEditIssue ( ) {
31
31
$ ( '#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 )
34
34
showAndScrollTo ( 'update' , 'issue_notes' ) ;
35
35
}
36
36
37
37
function showAndScrollToAddNotes ( ) {
38
38
$ ( '#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 )
41
41
showAndScrollTo ( 'update' , 'issue_notes' ) ;
42
42
}
43
43
You can’t perform that action at this time.
0 commit comments