1 [% USE ColumnsSettings %]
3 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.colvis.css" />
4 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.colvis.js"></script>
6 <script type="text/javascript">
7 function KohaTable(selector, dt_parameters, columns_settings) {
10 var excluded_ids = [];
11 $(columns_settings).each( function() {
12 if ( this['is_hidden'] == "1" ) {
13 hidden_ids.push( id );
15 if ( this['cannot_be_toggled'] == "1" ) {
16 excluded_ids.push( id );
20 dt_parameters[ "oColVis" ] = { "aiExclude": excluded_ids };
21 var table = $(selector).dataTable($.extend(true, {}, dataTablesDefaults, dt_parameters));
23 $(hidden_ids).each(function(index, value) {
24 table.fnSetColumnVis( value, false );