diff options
author | Francois Ferrand <thetypz@gmail.com> | 2015-02-24 16:26:57 +0100 |
---|---|---|
committer | Francois Ferrand <thetypz@gmail.com> | 2015-02-25 11:33:56 +0100 |
commit | 6b09ff766ae0030ddfeef9a526c62582e0821b2a (patch) | |
tree | b2dfbc93e3fe65b3a7c44f5a557758a93d9d14bc /app/Template | |
parent | 11d1314fbe96c8f19d898cf18dc615a49a89fd0d (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')
-rw-r--r-- | app/Template/app/dashboard.php | 8 | ||||
-rw-r--r-- | app/Template/board/filters.php | 8 | ||||
-rw-r--r-- | app/Template/board/task_menu.php | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/app/Template/app/dashboard.php b/app/Template/app/dashboard.php index e6f124e1..5b83540c 100644 --- a/app/Template/app/dashboard.php +++ b/app/Template/app/dashboard.php @@ -11,8 +11,8 @@ <li><i class="fa fa-cog fa-fw"></i><?= $this->a(t('Settings'), 'config', 'index') ?></li> <?php endif ?> <li> - <ul class="dropdown"> - <li> + <span class="dropdown"> + <span> <i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Change dashboard view') ?></a> <ul> <li> @@ -31,8 +31,8 @@ <a href="#" class="dashboard-toggle" data-toggle="activities"><?= t('Show/hide activities') ?></a> </li> </ul> - </li> - </ul> + </span> + </span> </li> </ul> </div> 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 |