summaryrefslogtreecommitdiff
path: root/app/Template/search
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-03 20:16:43 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-03 20:16:43 -0400
commita327f790ee036664439bf50e00c95fb8a0e1f97e (patch)
tree3eb615de25ddd28e641f0c0657a8c62181ca3bb1 /app/Template/search
parenta6d434d91f8caf6be0551553f837da4e283e0938 (diff)
Add search form on the dashboard
Diffstat (limited to 'app/Template/search')
-rw-r--r--app/Template/search/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Template/search/index.php b/app/Template/search/index.php
index 47a926f4..0c156bfd 100644
--- a/app/Template/search/index.php
+++ b/app/Template/search/index.php
@@ -11,7 +11,7 @@
<form method="get" action="?" autocomplete="off">
<?= $this->form->hidden('controller', $values) ?>
<?= $this->form->hidden('action', $values) ?>
- <?= $this->form->text('search', $values, array(), array('autofocus', 'required', 'placeholder="'.t('Search').'"'), 'form-input-large') ?>
+ <?= $this->form->text('search', $values, array(), array(empty($values['search']) ? 'autofocus' : '', 'required', 'placeholder="'.t('Search').'"'), 'form-input-large') ?>
<input type="submit" value="<?= t('Search') ?>" class="btn btn-blue"/>
</form>