New: autofocus on description after adding a free product
This commit is contained in:
parent
49d1bcf256
commit
96ddd99664
@ -1209,7 +1209,7 @@ class Form
|
|||||||
{
|
{
|
||||||
$num = $this->db->num_rows($result);
|
$num = $this->db->num_rows($result);
|
||||||
|
|
||||||
$outselect.='<select class="flat" name="'.$htmlname.'">';
|
$outselect.='<select class="flat" name="'.$htmlname.'" id="'.$htmlname.'">';
|
||||||
$outselect.='<option value="0" selected="selected"> </option>';
|
$outselect.='<option value="0" selected="selected"> </option>';
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|||||||
@ -47,6 +47,14 @@
|
|||||||
<input type="hidden" name="action" value="addline">
|
<input type="hidden" name="action" value="addline">
|
||||||
<input type="hidden" name="id" value="<?php echo $this->id; ?>">
|
<input type="hidden" name="id" value="<?php echo $this->id; ?>">
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
jQuery(document).ready(function() {
|
||||||
|
jQuery('#idprod').change(function() {
|
||||||
|
jQuery('#np_desc').focus();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<tr <?php echo $bcnd[$var]; ?>>
|
<tr <?php echo $bcnd[$var]; ?>>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user