extract common DT options to template
This commit is contained in:
		| @@ -13,12 +13,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, | ||||
|         "order": [[ 0, "asc" ], [2, "asc"], [ 3, "asc" ], [4, "asc"]], | ||||
|         "data": [% results %], | ||||
| @@ -54,7 +48,8 @@ $(document).ready(function() { | ||||
|                     return '<a href="[% search_device %]&q=' + encodeURIComponent(data) + '&model=' + encodeURIComponent(data) + '">' + he.encode(data || '') + '</a>'; | ||||
|                 } | ||||
|             } | ||||
|         ] | ||||
|         ]. | ||||
| [% INCLUDE 'ajax/datatabledefaults.tt' -%] | ||||
|     }); | ||||
|  | ||||
| }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user