Clicking on cancel inside a popover doesn't reload the page

This commit is contained in:
Frederic Guillot
2015-01-30 22:06:10 -05:00
parent 5efb06f6f3
commit 746e1a4e3d
6 changed files with 19 additions and 14 deletions

View File

@@ -59,7 +59,7 @@
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
<?= t('or') ?>
<?php if ($ajax): ?>
<?= $this->a(t('cancel'), 'board', 'show', array('project_id' => $task['project_id'])) ?>
<?= $this->a(t('cancel'), 'board', 'show', array('project_id' => $task['project_id']), false, 'close-popover') ?>
<?php else: ?>
<?= $this->a(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
<?php endif ?>