Subversion Repositories SmartDukaan

Rev

Rev 32414 | Rev 32468 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32414 Rev 32434
Line 38... Line 38...
38
    $(document).on('click', ".create-order", function () {
38
    $(document).on('click', ".create-order", function () {
39
        checkout("main-content");
39
        checkout("main-content");
40
    });
40
    });
41
 
41
 
42
    $(document).on('click', ".mk_check_plans", function (event, source) {
42
    $(document).on('click', ".mk_check_plans", function (event, source) {
43
        let lines = $("#order-items").find('tbody>tr:gt(0)');
43
        let lines = $("#order-items").find('tbody>tr:gt(0)').length;
44
        if (lines > 3) {
44
        if (lines > 3) {
45
            //No need to check plans
45
            //No need to check plans
46
            return;
46
            return;
47
        }
47
        }
48
        $('div.itemdetails').find('input').val('');
48
        $('div.itemdetails').find('input').val('');