File tree Expand file tree Collapse file tree 6 files changed +21
-3
lines changed Expand file tree Collapse file tree 6 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 1
1
< div class ="contextual ">
2
+ <%= link_to l ( :button_add_notes ) , edit_issue_path ( @issue ) ,
3
+ :onclick => 'showAndScrollToAddNotes(); return false;' ,
4
+ :class => 'icon icon-add' if @issue . editable? %>
2
5
<%= link_to l ( :button_edit ) , edit_issue_path ( @issue ) ,
3
6
:onclick => 'showAndScrollTo("update", "issue_notes"); return false;' ,
4
7
:class => 'icon icon-edit' , :accesskey => accesskey ( :edit ) if @issue . editable? %>
Original file line number Diff line number Diff line change 3
3
4
4
< div style ="clear: both; "> </ div >
5
5
<% if @issue . editable? %>
6
- < div id ="update " style =" display:none; ">
6
+ < div id ="update " class =" hidden ">
7
7
< h3 > <%= l ( :button_edit ) %> </ h3 >
8
8
<%= render :partial => 'edit' %>
9
9
</ div >
Original file line number Diff line number Diff line change 3
3
<%= render :partial => 'conflict' if @conflict %>
4
4
<div class ="box ">
5
5
<% if @issue . attributes_editable? %>
6
- < fieldset class ="tabular "> < legend > <%= l ( :label_change_properties ) %> </ legend >
6
+ < fieldset id =" attributes " class ="tabular "> < legend > <%= l ( :label_change_properties ) %> </ legend >
7
7
< div id ="all_attributes ">
8
8
<%= render :partial => 'form' , :locals => { :f => f } %>
9
9
</ div >
Original file line number Diff line number Diff line change @@ -1146,6 +1146,7 @@ en:
1146
1146
button_edit : Edit
1147
1147
button_edit_associated_wikipage : " Edit associated Wiki page: %{page_title}"
1148
1148
button_add : Add
1149
+ button_add_notes : Add notes
1149
1150
button_change : Change
1150
1151
button_apply : Apply
1151
1152
button_clear : Clear
Original file line number Diff line number Diff line change @@ -27,6 +27,20 @@ function showAndScrollTo(id, focus) {
27
27
$ ( 'html, body' ) . animate ( { scrollTop : $ ( '#' + id ) . offset ( ) . top } , 100 ) ;
28
28
}
29
29
30
+ function showAndScrollToEditIssue ( ) {
31
+ $ ( '#update h3' ) . show ( ) ;
32
+ $ ( '#attributes' ) . show ( ) ;
33
+ $ ( '#log_time' ) . show ( ) ;
34
+ showAndScrollTo ( 'update' , 'issue_notes' ) ;
35
+ }
36
+
37
+ function showAndScrollToAddNotes ( ) {
38
+ $ ( '#update h3' ) . hide ( ) ;
39
+ $ ( '#attributes' ) . hide ( ) ;
40
+ $ ( '#log_time' ) . hide ( ) ;
41
+ showAndScrollTo ( 'update' , 'issue_notes' ) ;
42
+ }
43
+
30
44
function toggleRowGroup ( el ) {
31
45
var tr = $ ( el ) . parents ( 'tr' ) . first ( ) ;
32
46
var n = tr . next ( ) ;
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ div.modal p.buttons {text-align:right; margin-bottom:0;}
141
141
div .modal .box p {margin : 0.3em 0 ;}
142
142
143
143
.clear : after { content : "." ; display : block; height : 0 ; clear : both; visibility : hidden; }
144
-
144
+ . hidden { display : none;}
145
145
.mobile-show {display : none;}
146
146
.hidden {display : none;}
147
147
.inline-flex {display : inline-flex;}
You can’t perform that action at this time.
0 commit comments