Patch #12524 ยป form_position.redmine_2-2-0_devel.patch
| app/views/issues/show.html.erb (revision ) | ||
|---|---|---|
| 135 | 135 |
<h3><%= l(:button_update) %></h3> |
| 136 | 136 |
<%= render :partial => 'edit' %> |
| 137 | 137 |
</div> |
| 138 |
|
|
| 139 |
<script type="text/javascript"> |
|
| 140 |
(function(){
|
|
| 141 |
var reverseOrder = <%= User.current.wants_comments_in_reverse_order? %>, |
|
| 142 |
historyElement = $('#history'),
|
|
| 143 |
updateElement = $('#update');
|
|
| 144 |
|
|
| 145 |
if (reverseOrder && historyElement.length) {
|
|
| 146 |
// Add br-element at bottom of update for to simulate some margin from journals |
|
| 147 |
updateElement.append(document.createElement('br'));
|
|
| 148 |
|
|
| 149 |
// Inject before journals |
|
| 150 |
historyElement[0].parentNode.insertBefore(updateElement[0], historyElement[0]); // jQuery work is dirty here |
|
| 151 |
|
|
| 152 |
// Apply css-clear-property to break some long commit lists |
|
| 153 |
updateElement.css({ clear: 'right' });
|
|
| 154 |
|
|
| 155 |
// Workaround sidebar clearing (expl. - http://work.arounds.org/issue/3/clearing-floats) |
|
| 156 |
updateElement.parent().css({ overflow: 'hidden', zoom: 1});
|
|
| 157 |
} |
|
| 158 |
})(); |
|
| 159 |
</script> |
|
| 138 | 160 |
<% end %> |
| 139 | 161 |
|
| 140 | 162 |
<% other_formats_links do |f| %> |