Ensure responsive tables for expenses and invoices list views

This commit is contained in:
Manuel Cillero 2017-09-05 08:39:39 +02:00
parent f4affc55e8
commit 723e7c6955

View file

@ -490,7 +490,7 @@ function zuitedesk_table($header, $rows, $attributes = array(), $caption = NULL)
if (!in_array($attributes['id'], array('tasks'))) {
$attributes['class'] = 'table table-condensed' . (!empty($attributes['class']) ? ' ' . $attributes['class'] : '');
}
if (arg(0) == 'admin' || in_array($attributes['id'], array('attributes', 'stormorganizations', 'stormpeople', 'stormteams', 'stormprojects', 'tasks', 'stormtasks', 'stormtickets', 'stormnotes', 'stormideas', 'stormdoks', 'stormtimetrackings', 'stormevents', 'stormtrash', 'twatcher'))) {
if (arg(0) == 'admin' || substr($attributes['id'], 0, 5) == 'storm' || in_array($attributes['id'], array('attributes', 'tasks', 'twatcher'))) {
$attributes['class'] .= ' table-hover';
return '<div class="table-responsive">' . theme_table($header, $rows, $attributes, $caption) . '</div>';
}