Subversion Repositories SmartDukaan

Rev

Rev 4390 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4386 anupam.sin 1
$(function() {
7792 anupam.sin 2
	$('#viewAwbDetails').live('click', function() {
3
		courierDetailByAwb("infopane", $('#courier-detail-by-awb').serialize());
4386 anupam.sin 4
		return false;
5
	});
6
});
7
 
8
function courierDetailByAwb(domId, params) {
9
    $.ajax({
10
        type : "POST",
7792 anupam.sin 11
        url : "/Support/courier-details!viewAwbDetails",
4386 anupam.sin 12
        data : params,
13
        success : function(response) {
14
            $('#' + domId).html(response);
15
            //var activityTable = createActivityDataTable('activity');
7792 anupam.sin 16
        },
17
        error : function() {
18
        	$('#' + domId).html("<div style='color:red;padding:10px;'>Some error occured. Please try again.</div>");
4386 anupam.sin 19
        }
7792 anupam.sin 20
 
4386 anupam.sin 21
    });
22
}