summaryrefslogtreecommitdiff
path: root/app/Template/board
diff options
context:
space:
mode:
authorFrancois Ferrand <thetypz@gmail.com>2015-02-24 16:26:57 +0100
committerFrancois Ferrand <thetypz@gmail.com>2015-02-25 11:33:56 +0100
commit6b09ff766ae0030ddfeef9a526c62582e0821b2a (patch)
treeb2dfbc93e3fe65b3a7c44f5a557758a93d9d14bc /app/Template/board
parent11d1314fbe96c8f19d898cf18dc615a49a89fd0d (diff)
Avoid re-layout when displaying the page.
Use <span>/<span> instead of <ul>/<il> for task menu anchor, to avoid flickering items when the menus are created.
Diffstat (limited to 'app/Template/board')
-rw-r--r--app/Template/board/filters.php8
-rw-r--r--app/Template/board/task_menu.php8
2 files changed, 8 insertions, 8 deletions
diff --git a/app/Template/board/filters.php b/app/Template/board/filters.php
index a0de5fd9..01923903 100644
--- a/app/Template/board/filters.php
+++ b/app/Template/board/filters.php
@@ -1,8 +1,8 @@
<div class="page-header">
<ul class="board-filters">
<li>
- <ul class="dropdown">
- <li>
+ <span class="dropdown">
+ <span>
<i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a>
<ul>
<li>
@@ -45,8 +45,8 @@
</li>
<?php endif ?>
</ul>
- </li>
- </ul>
+ </span>
+ </span>
</li>
<li>
<?= $this->formSelect('user_id', $users, array(), array(), array('data-placeholder="'.t('Filter by user').'"'), 'apply-filters chosen-select') ?>
diff --git a/app/Template/board/task_menu.php b/app/Template/board/task_menu.php
index e7e0f419..bbf12291 100644
--- a/app/Template/board/task_menu.php
+++ b/app/Template/board/task_menu.php
@@ -1,5 +1,5 @@
-<ul class="dropdown">
- <li>
+<span class="dropdown">
+ <span>
<a href="#" class="dropdown-menu"><?= '#'.$task['id'] ?></a>
<ul>
<li><i class="fa fa-user"></i> <?= $this->a(t('Change assignee'), 'board', 'changeAssignee', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?></li>
@@ -9,5 +9,5 @@
<li><i class="fa fa-pencil-square-o"></i> <?= $this->a(t('Edit this task'), 'task', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?></li>
<li><i class="fa fa-close"></i> <?= $this->a(t('Close this task'), 'task', 'close', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'redirect' => 'board'), false, 'task-board-popover') ?></li>
</ul>
- </li>
-</ul> \ No newline at end of file
+ </span>
+</span> \ No newline at end of file