Subversion Repositories SmartDukaan

Rev

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

Rev 18855 Rev 18884
Line 8... Line 8...
8
        success : function(response) {
8
        success : function(response) {
9
            $('#' + domId).html(response);
9
            $('#' + domId).html(response);
10
        }
10
        }
11
    });
11
    });
12
}
12
}
-
 
13
aoColumns = {
-
 
14
	'return':
-
 
15
	[  { "sWidth": "6%" },
-
 
16
	   { "sWidth": "30%" },
-
 
17
	   { "sWidth": "5%" },
-
 
18
	   { "sWidth": "10%" },
-
 
19
	   { "sWidth": "15%" },
-
 
20
	   { "sWidth": "8%" },
-
 
21
	   { "sWidth": "10%" },
-
 
22
	   { "sWidth": "8%" },
-
 
23
	   { "sWidth": "8%" },
-
 
24
	
13
 
25
	
-
 
26
	'delayed':
-
 
27
	[  { "sWidth": "6%" },
-
 
28
	   { "sWidth": "25%" },
-
 
29
	   { "sWidth": "5%" },
-
 
30
	   { "sWidth": "10%" },
-
 
31
	   { "sWidth": "15%" },
-
 
32
	   { "sWidth": "8%" },
-
 
33
	   { "sWidth": "10%" },
-
 
34
	   { "sWidth": "9%" },
-
 
35
	   { "sWidth": "12%" },
-
 
36
	'codverification':
-
 
37
	[  { "sWidth": "8%" },
-
 
38
	   { "sWidth": "40%" },
-
 
39
	   { "sWidth": "5%" },
-
 
40
	   { "sWidth": "10%" },
-
 
41
	   { "sWidth": "17%" },
-
 
42
	   { "sWidth": "10%" },
-
 
43
	   { "sWidth": "10%" }
-
 
44
	]
-
 
45
	'storepickup':
-
 
46
	[  { "sWidth": "6%" },
-
 
47
	   { "sWidth": "25%" },
-
 
48
	   { "sWidth": "5%" },
-
 
49
	   { "sWidth": "8%" },
-
 
50
	   { "sWidth": "15%" },
-
 
51
	   { "sWidth": "8%" },
-
 
52
	   { "sWidth": "10%" },
-
 
53
	   { "sWidth": "12%" },
-
 
54
	   { "sWidth": "4%" },
-
 
55
	   { "sWidth": "7%" },
-
 
56
};
14
function loadOrderPane(domId, userId, orderId) {
57
function loadOrderPane(domId, userId, orderId) {
15
    $.ajax({
58
    $.ajax({
16
        type : "GET",
59
        type : "GET",
17
        url : "/crm/user-orders?userId=" + userId,
60
        url : "/crm/user-orders?userId=" + userId,
18
        success : function(response) {
61
        success : function(response) {
Line 196... Line 239...
196
                //"fnDrawCallback": function() {truncateText(100);},
239
                //"fnDrawCallback": function() {truncateText(100);},
197
                "aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 5, 10, 20, "All" ] ]
240
                "aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 5, 10, 20, "All" ] ]
198
            });
241
            });
199
            
242
            
200
            $('#order-table').dataTable({
243
            $('#order-table').dataTable({
-
 
244
            	
201
                //"aaSorting" : [ [ 2, 'desc' ] ],
245
                //"aaSorting" : [ [ 2, 'desc' ] ],
202
	            "bAutoWidth": false,
246
	            "bAutoWidth": false,
203
	            "aoColumns" : [{ "sWidth": "8%" },
247
	            "aoColumns" : [{ "sWidth": "8%" },
204
	                           { "sWidth": "40%" },
248
	                           { "sWidth": "40%" },
205
	                           { "sWidth": "5%" },
249
	                           { "sWidth": "5%" },