
こんにちは。
ソースコードのお話で恐縮ですが、テーブルカラムのソート部分を色々といじっています。
試しに以下のソースを書いて実行してみたところ、ソートは出来たのですが、画面が崩れてしまいます。
--- app/controllers/issues_controller.rb ---
class IssuesController < ApplicationController
...
before_filter :authorize, :except => [:index, :changes, :hoge]
helper :sort
include SortHelper
...
def hoge
sort_init('id')
sort_update('id')
@issues = Issue.all(:order => sort_clause)
end
...
end
---- app/views/issues/hoge.html.erb ---
<table border="1">
<tr>
<%= sort_header_tag 'id', :width => 90 %>
</tr>
<% @issues.each do |issue| %>
<tr>
<td><%= h
issue.id %></td>
</tr>
<% end %>
</table>
----
redmine 1.0.1 です。
画面が崩れないようにしたいのですが、この辺りをご教示頂ければ幸いです。
以下、挙動の詳細です。
- 最初は崩れていない
- テーブルカラムをクリックすると、崩れる(添付画像の様に2重になって見える)&「ロード中」が消えない
- 以降、画面は崩れたまま