Heray-Was-Here
Server : Apache
System : Linux mail.lomejor.cr 6.8.0-1059-azure #65~22.04.1-Ubuntu SMP Thu May 28 16:59:19 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.2.31
Disable Function : NONE
Directory :  /var/www/dev/htdocs/custom/gestionhrm/modules/salariescontracts/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/dev/htdocs/custom/gestionhrm/modules/salariescontracts/js/salariescontracts.js
$(document).ready(function() {
	if ($.fn.datepicker) {
		$('.datepicker55').datepicker();
	}
	
	$('.user_date').find('.fa-edit').click(function() {
		console.log('rfgdfgdfddf');
		$('.user_date').hide();
		$('.edit_date').show();
	})

	$('#userid').change(function(){
		var id_user = $(this).val();
		var root = $('#salairecontrat_root').val();
		var option = {id_user: id_user};
		$.post(root + 'ajax/contrat.php', option, function(response) {
			if (response.status == true) {
				$('.edit_date').hide();
				$('#start_date_').val(response.date_emb);
				$('.user_date').find('span').html(response.date_emb);
				$('.user_date').show();
			}
		}, 'json');
	})

	// console.log(new Date(2018, 10 - 1, 25));

	// $('#type').change(function(){
	// 	var id = $(this).val();
	// 	var date_d = $('#start_date_').val();
	// 	if(id == '2'){
	// 		var d = new Date(date_d);
	// 	    var year = d.getFullYear();
	// 	    var month = d.getMonth();
	// 	    var day = d.getDate();
	// 		date = new Date(year + 1, month, day);

	// 		$(".datepicker").datepicker({ minDate: d, maxDate: date });
	// 		console.log(date);		
	// 	}
	// });

})

Hry