Browse Source

Merge pull request #165 from kimpenhaus/master

added autofocus to search input #149
pull/172/head
KodeStar 7 years ago
committed by GitHub
parent
commit
f55dbb0002
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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