$vendor =
($form->{selectvendor})
- ? qq|<select name=vendor>$form->{selectvendor}</select>|
+ ? qq|<select name="vendor" onclick="document.getElementById('update_button').click();">$form->{selectvendor}</select>|
: qq|<input name=vendor value="$form->{vendor}" size=35>|;
my @old_project_ids = ();
$transdate = $form->datetonum($form->{transdate}, \%myconfig);
$closedto = $form->datetonum($form->{closedto}, \%myconfig);
- print qq|<input class=submit type=submit name=action value="|
+ print qq|<input class="submit" type="submit" name="action" id="update_button" value="|
. $locale->text('Update') . qq|">|;
if ($form->{id}) {
$customer =
($form->{selectcustomer})
- ? qq|<select name=customer>$form->{selectcustomer}</select>|
+ ? qq|<select name="customer" onclick="document.getElementById('update_button').click();">$form->{selectcustomer}</select>|
: qq|<input name=customer value="$form->{customer}" size=35>|;
$employee = qq|
$transdate = $form->datetonum($form->{transdate}, \%myconfig);
$closedto = $form->datetonum($form->{closedto}, \%myconfig);
- print qq|<input class=submit type=submit name=action value="|
+ print qq|<input class="submit" type="submit" name="action" id="update_button" value="|
. $locale->text('Update') . qq|">
|;
if ($form->{id}) {
$vendor =
($form->{selectvendor})
- ? qq|<select name=vendor>$form->{selectvendor}</select>\n<input type=hidden name="selectvendor" value="$form->{selectvendor}">|
+ ? qq|<select name="vendor" onclick="document.getElementById('update_button').click();">| .
+ qq|$form->{selectvendor}</select>\n<input type=hidden name="selectvendor" value="| .
+ Q($form->{selectvendor}) . qq|">|
: qq|<input name=vendor value="$form->{vendor}" size=35>|;
$department = qq|
$customer =
($form->{selectcustomer})
- ? qq|<select name="customer">$form->{selectcustomer}</select>\n<input type="hidden" name="selectcustomer" value="$form->{selectcustomer}">|
+ ? qq|<select name="customer" onclick="document.getElementById('update_button').click();">| .
+ qq|$form->{selectcustomer}</select>\n<input type="hidden" name="selectcustomer" value="| .
+ Q($form->{selectcustomer}) . qq|">|
: qq|<input name="customer" value="$form->{customer}" size="35">|;
$department = qq|
$vc =
($form->{"select$form->{vc}"})
- ? qq|<select name=$form->{vc}>$form->{"select$form->{vc}"}</select>\n<input type=hidden name="select$form->{vc}" value="$form->{"select$form->{vc}"}">|
+ ? qq|<select name="$form->{vc}" onclick="document.getElementById('update_button').click();">| .
+ qq|$form->{"select$form->{vc}"}</select>\n<input type=hidden name="select$form->{vc}" value="| .
+ Q($form->{"select$form->{vc}"}) . qq|">|
: qq|<input name=$form->{vc} value="$form->{$form->{vc}}" size=35>|;
$department = qq|