summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-12 16:51:20 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-12 16:51:20 -0400
commitbf59465b10c3f360d8c860b55bcd40d78af74f4a (patch)
treee1a1178444db243cd1465ec8684ff20283ab7165 /app/Template
parent59df72d4763bbe640543f3026f33c15363e14116 (diff)
Use ajax requests for board collapse/expand
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/project/filters.php7
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">