From 2eb851653e3505fe6af5332d4e717aaadd811a32 Mon Sep 17 00:00:00 2001 From: "j.wollert" Date: Thu, 14 Oct 2010 14:48:29 +0000 Subject: [PATCH] standard sort is the first row (date) when no group_by is selected -fixes #3512 git-svn-id: https://dev.finn.de/svn/cockpit/branches/deployment_merge@1965 7926756e-e54e-46e6-9721-ed318f58905e --- app/views/cost_reports/_cost_entry_table.rhtml | 6 +----- .../cost_reports/_simple_cost_report_table.rhtml | 6 +----- app/views/cost_reports/_sortable_init.rhtml | 13 +++++++++++++ 3 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 app/views/cost_reports/_sortable_init.rhtml diff --git a/app/views/cost_reports/_cost_entry_table.rhtml b/app/views/cost_reports/_cost_entry_table.rhtml index 70f05c1227..be1e9c4950 100644 --- a/app/views/cost_reports/_cost_entry_table.rhtml +++ b/app/views/cost_reports/_cost_entry_table.rhtml @@ -49,8 +49,4 @@ - +<%= render :partial => 'sortable_init', :locals => {:sort_first_row => true } %> diff --git a/app/views/cost_reports/_simple_cost_report_table.rhtml b/app/views/cost_reports/_simple_cost_report_table.rhtml index f1d59132fa..cc14b117ff 100644 --- a/app/views/cost_reports/_simple_cost_report_table.rhtml +++ b/app/views/cost_reports/_simple_cost_report_table.rhtml @@ -43,8 +43,4 @@ show_units = list.include? "cost_type_id" - +<%= render :partial => 'sortable_init' %> diff --git a/app/views/cost_reports/_sortable_init.rhtml b/app/views/cost_reports/_sortable_init.rhtml new file mode 100644 index 0000000000..09b0f88da2 --- /dev/null +++ b/app/views/cost_reports/_sortable_init.rhtml @@ -0,0 +1,13 @@ +<% sort_first_row = sort_first_row || false %> + + \ No newline at end of file