{"size": 397, "ext": "js", "max_stars_repo_path": "public/js/admin/panel/products/read.js", "max_stars_repo_name": "Pozharskyi/oneclub20new", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/admin/panel/products/read.js", "max_issues_repo_name": "Pozharskyi/oneclub20new", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/admin/panel/products/read.js", "max_forks_repo_name": "Pozharskyi/oneclub20new", "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": 19.85, "max_line_length": 49, "alphanum_fraction": 0.5037783375}
/**
 * Created by Home on 05.09.2016.
 */

function addSubProduct()
{
    var id = $("#subQuantity").val();

    $.ajax({
        url: "/admin/products/sub_product/" + id,
        data: "csrf_token=91LmJoa82MlA1",
        type: "get",
        success: function( result )
        {
            $("#sub_products").append( result );
        }
    });

    $("#subQuantity").val( parseInt(id) + 1 );
}