Commit 962fe2ae authored by merlinofchaos's avatar merlinofchaos

#458194 by voxpelli: Add first and last row classes to table style.

parent 018de719
......@@ -68,6 +68,7 @@ Views 2.x-dev
o #534680 by dagmar: Visual indicator if checkbox will expand options.
o #512650 by sdboyer: Multiple many to one arguments on the same relationship were not relationship safe.
o #536994 by dboulet: Store result in variables for use in unformatted style.
o #458194 by voxpelli: Add first and last row classes to table style.
Views 2.6
Bugs fixed:
......
......@@ -377,6 +377,9 @@ function template_preprocess_views_view_table(&$vars) {
$vars['row_classes'][$num][] = ($num % 2 == 0) ? 'odd' : 'even';
}
$vars['row_classes'][0][] = 'views-row-first';
$vars['row_classes'][count($vars['row_classes']) - 1][] = 'views-row-last';
$vars['class'] = 'views-table';
if (!empty($options['sticky'])) {
drupal_add_js('misc/tableheader.js');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment