add trigger on js
This commit is contained in:
parent
a549e922a9
commit
0b0f3af6c0
@ -76,6 +76,7 @@ if (empty($fk_expense) || $fk_expense < 0) {
|
|||||||
$rep->errorMessage = $langs->transnoentitiesnoconv('ErrorBadValueForParameter', $fk_c_exp_tax_cat, 'fk_c_exp_tax_cat');
|
$rep->errorMessage = $langs->transnoentitiesnoconv('ErrorBadValueForParameter', $fk_c_exp_tax_cat, 'fk_c_exp_tax_cat');
|
||||||
|
|
||||||
$rep->response_status = 'error';
|
$rep->response_status = 'error';
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// @see ndfp.class.php:3576 (method: compute_total_km)
|
// @see ndfp.class.php:3576 (method: compute_total_km)
|
||||||
$expense = new ExpenseReport($db);
|
$expense = new ExpenseReport($db);
|
||||||
|
|||||||
@ -2626,6 +2626,7 @@ if ($action == 'create') {
|
|||||||
,success:function(response) {
|
,success:function(response) {
|
||||||
if (response.response_status == "success"){
|
if (response.response_status == "success"){
|
||||||
jQuery("#value_unit_ht").val(response.data);
|
jQuery("#value_unit_ht").val(response.data);
|
||||||
|
jQuery("#value_unit_ht").trigger("change");
|
||||||
jQuery("#value_unit").val("");
|
jQuery("#value_unit").val("");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user