Subversion Repositories SmartDukaan

Rev

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

Rev 33045 Rev 33047
Line 8... Line 8...
8
 
8
 
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"){
-
 
14
            gateway="SDDIRECT";
-
 
15
        }
13
        console.log(id)
16
        console.log(id)
14
        if (confirm(`Are you sure you want to activate ${gateway}?`)) {
17
        if (confirm(`Are you sure you want to activate ${gateway}?`)) {
15
            doPostAjaxRequestHandler(`${context}/activateKred?id=${id}&gateway=${gateway}`,
18
            doPostAjaxRequestHandler(`${context}/activateKred?id=${id}&gateway=${gateway}`,
16
                function (response) {
19
                function (response) {
17
                    row.html(response);
20
                    row.html(response);