Subversion Repositories SmartDukaan

Rev

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

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