{"size": 2095, "ext": "js", "max_stars_repo_path": "public/assets/js/menuresponsive.js", "max_stars_repo_name": "joserph/nomina-app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/assets/js/menuresponsive.js", "max_issues_repo_name": "joserph/nomina-app", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/assets/js/menuresponsive.js", "max_forks_repo_name": "joserph/nomina-app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.9333333333, "max_line_length": 141, "alphanum_fraction": 0.4439140811}
$(document).ready(function()
{
	$('.navbar-nav1 li a.dropdown-toggle1').click(function(e)
	{
		e.preventDefault();
		$(this).parent().toggleClass('open1');
	});
	$('[data-toggle="collapse"]').click(function()
	{
		var target = $(this).attr('data-target');
		$(target).toggleClass('in1');
	});
	/*****/
	$("#frm").submit(function(e){
        e.preventDefault();
        var dataString = 'id_concepto='+id_concepto+'&id_recibo='+id_recibo+'&id_user='+id_user+'&update_user='+update_user+'&unico='+unico; 
        $.ajax({
            type: "POST",
            url : "asigdedu-create",
            data : dataString,
            success : function(data){
                console.log(data);
            }
        },"json");

	});

	/******************/

	var form = $('.register_ajax');
	    form.bind("submit",function ()
	    {
	        $.ajax({
	            type: form.attr('method'),
	            url: form.attr('action'),
	            data: form.serialize(),
	            beforeSend: function(){
                    $('.before').append('<img src="assets/img/before.gif" />');
                },
	            complete: function(data){
	            	
	            },
	            success: function (data) {	
	            	$(".before").hide();
					$(".errors_form").html("");
					$(".success_message").hide().html("");
	            	if(data.success == false){
		            	var errores = "";
		            	for(datos in data.errors){
		            		errores += "<small class='error alert-danger'>" + data.errors[datos] + "</small> <br>";
		            	}
		            	$(".errors_form").html(errores)
		            }else{
		            	$(form)[0].reset();//limpiamos el formulario
		            	$(".success_message").show().html(data.message)
		            	location.reload();
					    	

					    $(".load_ajax").html()
		            }
	            },
	            error: function(errors){
	            	$(".before").hide();
					$(".errors_form").html("");
	            	$(".errors_form").html(errors);
	            }
	        });
	   		return false;
		});

/**********************/

});

