From bb040cfb78d53696edd63bf256d0fd8ba3ccdbfa Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 30 Jan 2016 22:25:16 -0500 Subject: Simplify code to handle ajax popover and redirects --- app/Template/comment/create.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'app/Template/comment/create.php') diff --git a/app/Template/comment/create.php b/app/Template/comment/create.php index 8ce9aac3..15dd3a8e 100644 --- a/app/Template/comment/create.php +++ b/app/Template/comment/create.php @@ -1,8 +1,7 @@ - -
+ form->csrf() ?> form->hidden('task_id', $values) ?> form->hidden('user_id', $values) ?> @@ -41,11 +40,7 @@ - - url->link(t('cancel'), 'board', 'show', array('project_id' => $task['project_id'])) ?> - - url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> - + url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?>
-- cgit v1.2.3