Skip to content
Snippets Groups Projects
Commit 81995101 authored by Peter Rotich's avatar Peter Rotich
Browse files

bug: Task print

Disable pjax on task print
parent 19f42ca4
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ $actions = array(); ...@@ -12,7 +12,7 @@ $actions = array();
$actions += array( $actions += array(
'print' => array( 'print' => array(
'href' => sprintf('tasks.php?id=%d&a=print', $task->getId()), 'href' => sprintf('tasks.php?id=%d&a=print', $task->getId()),
'class' => 'none', 'class' => 'no-pjax',
'icon' => 'icon-print', 'icon' => 'icon-print',
'label' => __('Print') 'label' => __('Print')
)); ));
...@@ -136,6 +136,11 @@ if ($task->isOverdue()) ...@@ -136,6 +136,11 @@ if ($task->isOverdue())
echo sprintf("data-redirect='%s'", $action['redirect']); echo sprintf("data-redirect='%s'", $action['redirect']);
?> ?>
href="<?php echo $action['href']; ?>" href="<?php echo $action['href']; ?>"
<?php
if (isset($action['href']) &&
$action['href'][0] != '#') {
echo 'target="blank"';
} ?>
><i class="<?php ><i class="<?php
echo $action['icon'] ?: 'icon-tag'; ?>"></i> <?php echo $action['icon'] ?: 'icon-tag'; ?>"></i> <?php
echo $action['label']; ?></a> echo $action['label']; ?></a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment