app/assets/javascripts/effective_datatables/initialize.js.coffee.erb in effective_datatables-2.2.4 vs app/assets/javascripts/effective_datatables/initialize.js.coffee.erb in effective_datatables-2.2.5

- old
+ new

@@ -20,31 +20,31 @@ }, { extend: 'copy', exportOptions: format: - header: (str) -> str.substring(0, str.indexOf('<')) + header: (str) -> $("<div>#{str}</div>").children('.filter-label').first().text() columns: ':visible:not(.col-actions)' }, { extend: 'csv', exportOptions: format: - header: (str) -> str.substring(0, str.indexOf('<')) + header: (str) -> $("<div>#{str}</div>").children('.filter-label').first().text() columns: ':visible:not(.col-actions)' }, { extend: 'excel', exportOptions: format: - header: (str) -> str.substring(0, str.indexOf('<')) + header: (str) -> $("<div>#{str}</div>").children('.filter-label').first().text() columns: ':visible:not(.col-actions)' }, { extend: 'print', exportOptions: format: - header: (str) -> str.substring(0, str.indexOf('<')) + header: (str) -> $("<div>#{str}</div>").children('.filter-label').first().text() columns: ':visible:not(.col-actions)' }, ] colReorder: !simple columns: datatable.data('columns')