     $tr.fadeOut('slow')
 
   $table.DataTable().draw()
-  refreshDatatables($table)
 
 beforeNew = ($action) ->
   $table = $action.closest('table')

  else
    $table.DataTable().flash('Successfully ' + $action.attr('title'), 'success')

  unless redirectDatatables($table)
    $table.DataTable().draw()
    refreshDatatables($table)

afterError = ($action) ->
  $table = $action.closest('table')

  if $wrapper.find('.effective-datatables-inline-row').length == 0
    $wrapper.removeClass('effective-datatables-inline-expanded')

# Cancel button clicked. Blow away new tr, or restore edit tr
# No data will have changed at this point
$(document).on 'click', ".dataTables_wrapper a[data-role='inline-form-cancel']", (event) ->
