Subversion Repositories SmartDukaan

Rev

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

Rev 33190 Rev 33886
Line 9... Line 9...
9
    $(document).on('click', '.activate-partner-kred', function () {
9
    $(document).on('click', '.activate-partner-kred', function () {
10
        var row = $(this).closest("tr");
10
        var row = $(this).closest("tr");
11
        var id = $(this).data('id');
11
        var id = $(this).data('id');
12
        let gateway = $(row).find('select').val();
12
        let gateway = $(row).find('select').val();
13
        if(typeof gateway==="undefined"){
13
        if(typeof gateway==="undefined"){
14
            gateway="SDDIRECT";
14
            gateway = row.find('.mk_gateway').data("gateway");
15
        }
15
        }
16
        console.log(id)
16
        console.log(id)
17
        if (confirm(`Are you sure you want to activate ${gateway}?`)) {
17
        if (confirm(`Are you sure you want to activate ${gateway}?`)) {
18
            doPostAjaxRequestHandler(`${context}/activateKred?id=${id}&gateway=${gateway}`,
18
            doPostAjaxRequestHandler(`${context}/activateKred?id=${id}&gateway=${gateway}`,
19
                function (response) {
19
                function (response) {