     )
 
   false
-
-

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

# 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) ->

    $table.DataTable().flash(flash[1], flash[0]).draw()
  else
    $table.DataTable().flash('Successfully ' + $action.attr('title'), 'success').draw()

  refreshDatatables($table)

buildRow = (length, payload) ->
  "<td class='col-inline-form' colspan='#{length-1}'><div class='container'>#{payload}</div></td>" +
