extract common DT options to template
This commit is contained in:
		| @@ -12,12 +12,6 @@ | ||||
| <script type="text/javascript"> | ||||
| $(document).ready(function() { | ||||
|   var table = $('#data-table').dataTable({ | ||||
|     "processing": true, | ||||
|     "stateSave": true, | ||||
|     "pageLength": [% settings.table_pagesize %], | ||||
|     "language": { | ||||
|       "search": 'Filter records: ' | ||||
|     }, | ||||
|     "deferRender": true, | ||||
|     "data": [% results %], | ||||
|     "columns": [ | ||||
| @@ -47,7 +41,8 @@ $(document).ready(function() { | ||||
|           return he.encode(capitalizeFirstLetter(data)); | ||||
|         } | ||||
|       } | ||||
|     ] | ||||
|     ], | ||||
| [% INCLUDE 'ajax/datatabledefaults.tt' -%] | ||||
|   }); | ||||
| }); | ||||
| </script> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user