Subversion Repositories SmartDukaan

Rev

Rev 35534 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35534 Rev 35535
Line 94... Line 94...
94
        }
94
        }
95
    });
95
    });
96
 
96
 
97
    $(document).on('click', '.add-credit-exception', function () {
97
    $(document).on('click', '.add-credit-exception', function () {
98
        var row = $(this).closest("tr");
98
        var row = $(this).closest("tr");
99
        var fofoId = $(this).data('fofo-id');
99
        var fofoId = $(this).data('fofoId');
100
        var partnerName = $(row).find("td:eq(2)").text().trim();
100
        var partnerName = $(row).find("td:eq(2)").text().trim();
101
 
101
 
102
        if (confirm("Are you sure you want to add credit exception for today for " + partnerName + "?")) {
102
        if (confirm("Are you sure you want to add credit exception for today for " + partnerName + "?")) {
103
            doPostAjaxRequestHandler(context + "/addCreditBlockedException?fofoId=" + fofoId, function (response) {
103
            doPostAjaxRequestHandler(context + "/addCreditBlockedException?fofoId=" + fofoId, function (response) {
104
                if (response === 'true' || response === true) {
104
                if (response === 'true' || response === true) {