From 0f418e13e62b38b7cb0f2496fcad87dd99527bc8 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 12 Nov 2012 16:17:09 +0100 Subject: [PATCH] Impproved group_by in table feature. --- app/assets/javascripts/app/views/generic/table.jst.eco | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/views/generic/table.jst.eco b/app/assets/javascripts/app/views/generic/table.jst.eco index cca67a726..38ac94b5c 100644 --- a/app/assets/javascripts/app/views/generic/table.jst.eco +++ b/app/assets/javascripts/app/views/generic/table.jst.eco @@ -16,12 +16,16 @@ +<% length = @header.length %> +<% if @checkbox || @radio: %> +<% length++ %> +<% end %> <% position = 0 %> <% groupLast = '' %> <% for object in @objects: %> <% if @groupBy: %> <% if groupLast isnt object[@groupBy.id]: %> - <%- @P( object[@groupBy.name] ) %> + <%- @P( object[@groupBy.name] ) %> <% groupLast = object[@groupBy.id] %> <% end %> <% end %>