Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 124 | Rev 126 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 124 Rev 125
Línea 894... Línea 894...
894
    }); 
894
    }); 
Línea 895... Línea 895...
895
 
895
 
896
	$('body').on('click', 'button.btn-edit-form',function(e) {
896
	$('body').on('click', 'button.btn-edit-form',function(e) {
897
		e.preventDefault();
897
		e.preventDefault();
-
 
898
		form_id =  $(this).data('id')
-
 
899
    var action = $(this).data('href');
-
 
900
		console.log('>>: data > ', {
-
 
901
			form_id,
898
		form_id =  $(this).data('id')
902
			action
899
        
903
		})
900
		$.ajax({
904
		$.ajax({
901
			'dataType': 'json',
-
 
902
			'method': 'post',
905
			'dataType'  : 'json',
903
			'url' :  '/test/method-one',
906
			'accept'    : 'application/json',
904
			'data' :{
907
			'method'    : 'get',
905
				'form-id' : form_id
-
 
906
			},
908
			'url'       :  action,
907
		}).done(function(response) {
909
		}).done(function(response) {
908
			if(response['success']) {
910
			if(response['success']) {
Línea 909... Línea 911...
909
					validatorForm.resetForm();
911
					validatorForm.resetForm();