Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
35503 vikas 1
$(document).on('click', ".shopify-orders", function () {
2
 
3
    doGetAjaxRequestHandler(context + "/shopify/orders",
4
    (response) => {
5
        $('#main-content').html(response);
6
        // Initialize DataTable
7
        $('#orders').DataTable();
8
 
9
    });
10
});
11
 
12
$(document).on('click', ".order-detail", function () {
13
    let id = $(this).data('id');
14
    id = id.substring(id.lastIndexOf('/') + 1);
15
    doGetAjaxRequestHandler(context + "/shopify/order/place/"+id, (response) => {
16
        $('#main-content').html(response);
17
    });
18
});