Subversion Repositories SmartDukaan

Rev

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

Rev 35360 Rev 35391
Line 41... Line 41...
41
            $('#main-content').html(response);
41
            $('#main-content').html(response);
42
        });
42
        });
43
    }
43
    }
44
 
44
 
45
    function cancelTrialForm(trialFormId) {
45
    function cancelTrialForm(trialFormId) {
46
        if (confirm("Are you sure you want to cancel this trial?")) {
46
        if (confirm("Are you sure you want to reject this trial?")) {
47
            doPostAjaxRequestHandler(`${context}/trial/cancel/${trialFormId}`, function (response) {
47
            doPostAjaxRequestHandler(`${context}/trial/reject/${trialFormId}`, function (response) {
48
                if (response == "true") {
48
                if (response == "true") {
49
                    $('.modal-backdrop').remove();
49
                    $('.modal-backdrop').remove();
50
                    $('body').removeClass('modal-open');
50
                    $('body').removeClass('modal-open');
51
                    $('body').css('padding-right', '');
51
                    $('body').css('padding-right', '');
52
                    loadPendingTrialForms("main-content");
52
                    loadPendingTrialForms("main-content");