Browse Source

added autofocus to search input #149

pull/165/head
Marcus Kimpenhaus 7 years ago
parent
commit
9e8794a39f
  1. 2
      app/Setting.php

2
app/Setting.php

@ -206,7 +206,7 @@ class Setting extends Model
$output .= '<div class="searchform">';
$output .= Form::open(['url' => $url, 'method' => 'get']);
$output .= '<div class="input-container">';
$output .= Form::text($var, null, ['class' => 'homesearch', 'placeholder' => __($name).' '.__('app.settings.search').'...']);
$output .= Form::text($var, null, ['class' => 'homesearch', autofocus => 'autofocus', 'placeholder' => __($name).' '.__('app.settings.search').'...']);
$output .= '<button type="submit">'.ucwords(__('app.settings.search')).'</button>';
$output .= '</div>';
$output .= Form::close();

Loading…
Cancel
Save