From a327f790ee036664439bf50e00c95fb8a0e1f97e Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 3 Jul 2015 20:16:43 -0400 Subject: Add search form on the dashboard --- app/Template/search/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Template/search') 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->hidden('controller', $values) ?> form->hidden('action', $values) ?> - form->text('search', $values, array(), array('autofocus', 'required', 'placeholder="'.t('Search').'"'), 'form-input-large') ?> + form->text('search', $values, array(), array(empty($values['search']) ? 'autofocus' : '', 'required', 'placeholder="'.t('Search').'"'), 'form-input-large') ?>
-- cgit v1.2.3