Subversion Repositories SmartDukaan

Rev

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

Rev 33047 Rev 33190
Line 26... Line 26...
26
    });
26
    });
27
 
27
 
28
    $(document).on('click', '.deactivate-partner-kred', function () {
28
    $(document).on('click', '.deactivate-partner-kred', function () {
29
        var row = $(this).closest("tr");
29
        var row = $(this).closest("tr");
30
        var id = $(this).data('id');
30
        var id = $(this).data('id');
-
 
31
        let gateway = $(row).find('select').val();
-
 
32
        if(typeof gateway==="undefined"){
31
        console.log(id)
33
            gateway="SDDIRECT";
32
 
34
        }
33
        if (confirm('Are you sure you want to deactivate?')) {
35
        if (confirm('Are you sure you want to deactivate?')) {
34
            doPostAjaxRequestHandler(context + "/deactivateKred?id=" + id,
36
            doPostAjaxRequestHandler(context + "/deactivateKred?id=" + id,
35
                function (response) {
37
                function (response) {
36
                    row.html(response);
38
                    row.html(response);
37
                    alert(`${gateway} successfully deactivated`);
39
                    alert(`${gateway} successfully deactivated`);