Skip to content

Failed to compress valid JS (axios library) #336

Open
@tugibaev

Description

@tugibaev

Valid full size code:

$(document).ready(function () {
    $(".add-cart").click(function (event) {
        event.preventDefault();
        $entry = $(this).attr("data");
        $count = $("#numCount").val();


        axios.post("/cartadd/", {
            "entry": $entry,
            "count": $count
        })
        .then(function (html) {
                $("#dlgCartAddBody").html(html);
                $("#dlgCartAdd").modal();
            })
        .catch(function () {
                alert("error");
            });
    });
});

can't be compressed. May be .then( or .catch( problem... Axios is good use JS library for AJAX, but code can't be compressed...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions