relocate repo files so ND2 is the only code
This commit is contained in:
		
							
								
								
									
										30
									
								
								share/views/ajax/report/apchanneldist.tt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								share/views/ajax/report/apchanneldist.tt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| <table id="data-table" class="table table-striped table-bordered" width="100%" cellspacing="0"> | ||||
|   <thead> | ||||
|     <tr> | ||||
|       <th>Channel</th> | ||||
|       <th>Count</th> | ||||
|     </tr> | ||||
|   </thead> | ||||
| </table> | ||||
|  | ||||
| <script type="text/javascript"> | ||||
| $(document).ready(function() { | ||||
|   var table = $('#data-table').dataTable({ | ||||
|     "deferRender": true, | ||||
|     "order": [[ 1, "desc" ]], | ||||
|     "data": [% results %], | ||||
|     "columns": [ | ||||
|       { | ||||
|         "data": 'channel' | ||||
|       }, { | ||||
|         "data": 'ch_count', | ||||
|         "searchable": false, | ||||
|         "render": function(data, type, row, meta) { | ||||
|           return data.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); | ||||
|         } | ||||
|       } | ||||
|     ], | ||||
| [% INCLUDE 'ajax/datatabledefaults.tt' -%] | ||||
|   }); | ||||
| }); | ||||
| </script> | ||||
		Reference in New Issue
	
	Block a user