Commit ffc3f7db authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Added a hidden label to search box (Bug #1489249)"

parents ea665635 073da085
......@@ -30,6 +30,7 @@ $searchform = pieform(array(
'name' => 'search',
'renderer' => 'div',
'class' => 'form-inline with-heading',
'autofocus' => false,
'elements' => array(
'inputgroup' => array(
'type' => 'fieldset',
......@@ -39,6 +40,10 @@ $searchform = pieform(array(
'query' => array(
'type' => 'text',
'defaultvalue' => $query,
'hiddenlabel' => true,
'value' => get_string('search'),
'class' => 'emptyonfocus',
'title' => get_string('search'),
),
'submit' => array(
'type' => 'button',
......
......@@ -618,6 +618,7 @@ else {
'name' => 'search',
'renderer' => 'div',
'class' => 'form-inline with-heading',
'autofocus' => false,
'elements' => array(
'inputgroup' => array(
'type' => 'fieldset',
......@@ -627,6 +628,10 @@ else {
'query' => array(
'type' => 'text',
'defaultvalue' => $query,
'hiddenlabel' => true,
'value' => get_string('search'),
'class' => 'emptyonfocus',
'title' => get_string('search'),
),
'submit' => array(
'type' => 'button',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment