Fix SubtaskRestrictionController modal misbehaviour on link
When the icon was clicked, the modal wasn't shown. Instead, its html content was open as the whole page.
This commit is contained in:
committed by
Frédéric Guillot
parent
9f1419ee6b
commit
9bd7ae9515
@@ -32,7 +32,7 @@ class SubtaskHelper extends Base
|
|||||||
public function renderTitle(array $subtask)
|
public function renderTitle(array $subtask)
|
||||||
{
|
{
|
||||||
if ($subtask['status'] == 0) {
|
if ($subtask['status'] == 0) {
|
||||||
$html = '<i class="fa fa-square-o fa-fw"></i>';
|
$html = '<i class="fa fa-square-o fa-fw ' . ($this->hasSubtaskInProgress() ? 'js-modal-confirm' : '') . '"></i>';
|
||||||
} elseif ($subtask['status'] == 1) {
|
} elseif ($subtask['status'] == 1) {
|
||||||
$html = '<i class="fa fa-gears fa-fw"></i>';
|
$html = '<i class="fa fa-gears fa-fw"></i>';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user