Subversion Repositories SmartDukaan

Rev

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

Rev 18345 Rev 18348
Line 178... Line 178...
178
            // For tickets accessed from activity page
178
            // For tickets accessed from activity page
179
            if (activityId != null) {
179
            if (activityId != null) {
180
                $('#activity tr').removeClass('selected');
180
                $('#activity tr').removeClass('selected');
181
                $('#activity-row-' + activityId).addClass('selected');
181
                $('#activity-row-' + activityId).addClass('selected');
182
            }
182
            }
-
 
183
            $('#tr-table').dataTable({
-
 
184
            	"bAutoWidth": false,
-
 
185
          		"bLengthChange": false,
-
 
186
	            "bFilter": false,
-
 
187
            	"aoColumns" : [{ "sWidth": "8%" },
-
 
188
                	           { "sWidth": "8%" },
-
 
189
                    	       { "sWidth": "8%" },
-
 
190
                        	   { "sWidth": "50%" },
-
 
191
                        	   { "sWidth": "20%" }],
-
 
192
 
-
 
193
                "iDisplayLength" : 10,
-
 
194
                //"fnDrawCallback": function() {truncateText(100);},
-
 
195
                "aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 10, 20, "All" ] ]
-
 
196
            });
183
            
197
            
184
            $('#order-table').dataTable({
198
            $('#order-table').dataTable({
185
                "aaSorting" : [ [ 2, 'desc' ] ],
199
                //"aaSorting" : [ [ 2, 'desc' ] ],
186
	            "bAutoWidth": false,
200
	            "bAutoWidth": false,
187
	            "aoColumns" : [{ "sWidth": "8%" },
201
	            "aoColumns" : [{"bVisible": false},{ "sWidth": "8%" },
188
	                           { "sWidth": "37%" },
202
	                           { "sWidth": "45%" },
189
	                           { "sWidth": "15%" },
203
	                           { "sWidth": "10%" },
190
	                           { "sWidth": "8%" },
-
 
191
	                           { "sWidth": "12%" },
204
	                           { "sWidth": "17%" },
192
	                           { "sWidth": "10%" },
205
	                           { "sWidth": "10%" },
193
	                 		   { "sWidth": "10%" }],
206
	                 		   { "sWidth": "10%" }],
194
                //"iDisplayLength" : 10,
207
                //"iDisplayLength" : 10,
195
                //"fnDrawCallback": function() {truncateText(100);},
208
                "fnDrawCallback": function() {
196
                "aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 10, 20, "All" ] ]
209
	                $('.mk_transaction').click(function(){
197
            });
210
	                	
198
            $('#tr-table').dataTable({
-
 
199
                "aaSorting" : [ [ 2, 'desc' ] ],
-
 
200
            "bAutoWidth": false,
211
	                });
201
            "aoColumns" : [{ "sWidth": "8%" },
-
 
202
                           { "sWidth": "8%" },
-
 
203
                           { "sWidth": "8%" },
-
 
204
                           { "sWidth": "50%" },
-
 
205
                           { "sWidth": "20%" }],
-
 
206
 
-
 
207
                "iDisplayLength" : 10,
212
                },
208
                //"fnDrawCallback": function() {truncateText(100);},
-
 
209
                "aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 10, 20, "All" ] ]
213
                "aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 10, 20, "All" ] ]
210
            });
214
            });
211
        }
215
        }
212
    });
216
    });
213
}
217
}