Update card.php

This commit is contained in:
Laurent Destailleur 2023-02-22 01:54:06 +01:00 committed by GitHub
parent af8e6bfa61
commit fa9493db37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -669,9 +669,10 @@ if ($action == 'create' && $permissiontoadd) {
print '<script>';
print '$( document ).ready(function() {';
print '$("#updateAmountWithLastSalary").on("click", function updateAmountWithLastSalary() {
console.log("We click on link to autofill salary amount url="+url);
var fk_user = $("#fk_user").val()
var url = "'.DOL_URL_ROOT.'/salaries/ajax/ajaxsalaries.php?fk_user="+fk_user;
console.log("We click on link to autofill salary amount url="+url);
if (fk_user != -1) {
$.get(
url,