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