app/assets/javascripts/effective_datatables/initialize.js.coffee.erb in effective_datatables-2.1.2 vs app/assets/javascripts/effective_datatables/initialize.js.coffee.erb in effective_datatables-2.1.3
- old
+ new
@@ -84,9 +84,13 @@
# FixedColumns doesn't work well yet.
# fixedColumns = new $.fn.dataTable.FixedColumns(table,
# leftColumns: 2
# )
+ # Apply EffectiveFormInputs to the Show x per page dropdown
+ if datatable.data('effective-form-inputs')
+ table.closest('.dataTables_wrapper').find('.dataTables_length select').select2()
+
new $.fn.dataTable.ColReorder(table)
$ -> initializeDataTables()
$(document).on 'page:change', -> initializeDataTables()