Subversion Repositories SmartDukaan

Rev

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

Rev 4314 Rev 4438
Line 508... Line 508...
508
            $('#sidebar').html($(response).find('#sidebar').html());
508
            $('#sidebar').html($(response).find('#sidebar').html());
509
        }
509
        }
510
    });
510
    });
511
}
511
}
512
 
512
 
513
function blockPayment(transactionId, ticketId, currentAgent) {
513
function blockPayment(transactionId, ticketId, paymentId) {
514
	$.ajax({
514
	$.ajax({
515
		type : "GET",
515
		type : "GET",
516
		url : "/crm/tickets!blockPayment?transactionId=" + transactionId + "&id=" + ticketId + "&currentAgentEmailId=" + currentAgent,
516
		url : "/crm/tickets!blockPayment?transactionId=" + transactionId + "&id=" + ticketId, "&paymentId=" + paymentId,
517
		success : function(response) {
517
		success : function(response) {
518
            $('#bottom-infopane').html(response);
518
            $('#bottom-infopane').html(response);
519
        }
519
        }
520
	});
520
	});
521
}
521
}
522
 
522
 
523
function allowPayment(transactionId, ticketId) {
523
function allowPayment(transactionId, ticketId, paymentId) {
524
	$.ajax({
524
	$.ajax({
525
		type : "GET",
525
		type : "GET",
526
		url : "/crm/tickets!allowPayment?transactionId=" + transactionId + "&id=" + ticketId,
526
		url : "/crm/tickets!allowPayment?transactionId=" + transactionId + "&id=" + ticketId, "&paymentId=" + paymentId,
527
		success : function(response) {
527
		success : function(response) {
528
            $('#bottom-infopane').html(response);
528
            $('#bottom-infopane').html(response);
529
        }
529
        }
530
	});
530
	});
531
}
531
}
532
532