diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-12 16:51:20 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-12 16:51:20 -0400 |
commit | bf59465b10c3f360d8c860b55bcd40d78af74f4a (patch) | |
tree | e1a1178444db243cd1465ec8684ff20283ab7165 /app/Template | |
parent | 59df72d4763bbe640543f3026f33c15363e14116 (diff) |
Use ajax requests for board collapse/expand
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/project/filters.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/Template/project/filters.php b/app/Template/project/filters.php index cb6f11d3..e2fdc751 100644 --- a/app/Template/project/filters.php +++ b/app/Template/project/filters.php @@ -5,13 +5,14 @@ <ul> <?php if (isset($is_board)): ?> <li> - <?php if ($this->board->isCollapsed($project['id'])): ?> + <span class="filter-display-mode" <?= $this->board->isCollapsed($project['id']) ? '' : 'style="display: none;"' ?>> <i class="fa fa-expand fa-fw"></i> <?= $this->url->link(t('Expand tasks'), 'board', 'expand', array('project_id' => $project['id']), false, 'board-display-mode', t('Keyboard shortcut: "%s"', 's')) ?> - <?php else: ?> + </span> + <span class="filter-display-mode" <?= $this->board->isCollapsed($project['id']) ? 'style="display: none;"' : '' ?>> <i class="fa fa-compress fa-fw"></i> <?= $this->url->link(t('Collapse tasks'), 'board', 'collapse', array('project_id' => $project['id']), false, 'board-display-mode', t('Keyboard shortcut: "%s"', 's')) ?> - <?php endif ?> + </span> </li> <li> <span class="filter-compact"> |