Merge pull request #3917 from atm-maxime/develop
Fix : finally, autofocus on product search field is a bad idea...
This commit is contained in:
commit
bef4dd2bae
@ -1546,7 +1546,7 @@ class Form
|
|||||||
print img_picto($langs->trans("Search"), 'search');
|
print img_picto($langs->trans("Search"), 'search');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print '<input type="text" size="20" name="search_'.$htmlname.'" id="search_'.$htmlname.'" value="'.$selected_input_value.'"'.$placeholder.' autofocus />';
|
print '<input type="text" size="20" name="search_'.$htmlname.'" id="search_'.$htmlname.'" value="'.$selected_input_value.'"'.$placeholder.' />';
|
||||||
if ($hidelabel == 3) {
|
if ($hidelabel == 3) {
|
||||||
print img_picto($langs->trans("Search"), 'search');
|
print img_picto($langs->trans("Search"), 'search');
|
||||||
}
|
}
|
||||||
@ -1663,7 +1663,7 @@ class Form
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/product/dynamic_price/class/price_parser.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/product/dynamic_price/class/price_parser.class.php';
|
||||||
$num = $this->db->num_rows($result);
|
$num = $this->db->num_rows($result);
|
||||||
|
|
||||||
$out.='<select class="flat" name="'.$htmlname.'" id="'.$htmlname.'" autofocus>';
|
$out.='<select class="flat" name="'.$htmlname.'" id="'.$htmlname.'">';
|
||||||
$out.='<option value="0" selected> </option>';
|
$out.='<option value="0" selected> </option>';
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user