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 11< 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? %>
25<%= link_to l ( :button_edit ) , edit_issue_path ( @issue ) ,
36 :onclick => 'showAndScrollTo("update", "issue_notes"); return false;' ,
47 :class => 'icon icon-edit' , :accesskey => accesskey ( :edit ) if @issue . editable? %>
Original file line number Diff line number Diff line change 33
44< div style ="clear: both; "> </ div >
55<% if @issue . editable? %>
6- < div id ="update " style =" display:none; ">
6+ < div id ="update " class =" hidden ">
77 < h3 > <%= l ( :button_edit ) %> </ h3 >
88 <%= render :partial => 'edit' %>
99 </ div >
Original file line number Diff line number Diff line change 33 <%= render :partial => 'conflict' if @conflict %>
44 <div class ="box ">
55 <% 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 >
77 < div id ="all_attributes ">
88 <%= render :partial => 'form' , :locals => { :f => f } %>
99 </ div >
Original file line number Diff line number Diff line change @@ -1148,6 +1148,7 @@ en:
11481148 button_edit : Edit
11491149 button_edit_associated_wikipage : " Edit associated Wiki page: %{page_title}"
11501150 button_add : Add
1151+ button_add_notes : Add notes
11511152 button_change : Change
11521153 button_apply : Apply
11531154 button_clear : Clear
Original file line number Diff line number Diff line change @@ -27,6 +27,20 @@ function showAndScrollTo(id, focus) {
2727 $ ( 'html, body' ) . animate ( { scrollTop : $ ( '#' + id ) . offset ( ) . top } , 100 ) ;
2828}
2929
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+
3044function toggleRowGroup ( el ) {
3145 var tr = $ ( el ) . parents ( 'tr' ) . first ( ) ;
3246 var n = tr . next ( ) ;
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ div.modal p.buttons {text-align:right; margin-bottom:0;}
137137div .modal .box p {margin : 0.3em 0 ;}
138138
139139.clear : after { content : "." ; display : block; height : 0 ; clear : both; visibility : hidden; }
140-
140+ . hidden { display : none;}
141141.mobile-show {display : none;}
142142.hidden {display : none;}
143143.inline-flex {display : inline-flex;}
You can’t perform that action at this time.
0 commit comments