Skip to content
Browse files

sum 1 more to column count because of sortable column handle

  • Loading branch information...
1 parent 8688e03 commit 4fac3979527591c9fe339dbd3db94d6ae2b0f47a Richard Zheng committed May 31, 2012
View
9 frontends/default/views/_list_inline_adapter.html.erb
@@ -0,0 +1,9 @@
+<%
+ column_count = if nested? and action_name == 'index'
+ active_scaffold_config_for(nested.parent_model).list.columns.count + 1
+ else
+ active_scaffold_config.list.columns.count + 1
+ end
+ column_count += 1 if active_scaffold_config.sortable.add_handle_column
+%>
+<%= render :super, :locals => {:column_count => column_count, :payload => payload} %>
View
2 frontends/default/views/_list_messages.html.erb
@@ -0,0 +1,2 @@
+<% column_count ||= columns.length + 2 if active_scaffold_config.sortable.add_handle_column -%>
+<%= render :super, :locals => {:column_count => column_count} %>

0 comments on commit 4fac397

Please sign in to comment.
Something went wrong with that request. Please try again.