Skip to content
Snippets Groups Projects
Commit 7dcbfbbd authored by Jared Hancock's avatar Jared Hancock
Browse files

Merge pull request #2461 from nfebuary/issue/2456


UI fix for delete button highlight - 2456

Reviewed-By: default avatarJared Hancock <jared@osticket.com>
parents b7d78a17 ecd46f97
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ if ($role->hasPerm(Task::PERM_DELETE)) {
'delete' => array(
'href' => sprintf('#tasks/%d/delete', $task->getId()),
'icon' => 'icon-trash',
'class' => 'red button task-action',
'class' => 'danger',
'label' => __('Delete'),
'redirect' => 'tasks.php'
));
......@@ -130,10 +130,8 @@ if ($task->isOverdue())
class="action-dropdown anchor-right">
<ul>
<?php foreach ($actions as $a => $action) { ?>
<li>
<a class="no-pjax <?php
echo $action['class'] ?: 'task-action'; ?>"
<?php
<li <?php if ($action['class']) echo sprintf("class='%s'", $action['class']); ?> >
<a class="no-pjax task-action" <?php
if ($action['dialog'])
echo sprintf("data-dialog-config='%s'", $action['dialog']);
if ($action['redirect'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment