Ensure responsive tables for expenses and invoices list views
This commit is contained in:
parent
f4affc55e8
commit
723e7c6955
1 changed files with 1 additions and 1 deletions
|
@ -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>';
|
||||
}
|
||||
|
|
Reference in a new issue