app/assets/javascripts/effective_datatables/reorder.js.coffee in effective_datatables-4.3.9 vs app/assets/javascripts/effective_datatables/reorder.js.coffee in effective_datatables-4.3.10
- old
+ new
@@ -31,7 +31,12 @@
$table = $link.closest('.dataTables_wrapper').find('table.dataTable').first()
column = $table.DataTable().column('.col-_reorder')
return unless column.length > 0
+ if column.visible()
+ $table.removeClass('reordering')
+ else
+ $table.addClass('reordering')
+
column.visible(!column.visible())