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