   $th = $action.closest('th')
 
   # Hide New Button
-  $th.find('a').hide()
+  $th.children('a').hide()
 
   # Append spinner and show Processing
   $th.append($table.data('spinner'))


  # Hide dropdown
  $td.find('.dropdown-toggle').dropdown('toggle')
  $td.find('.btn-group').hide()

  # Append spinner and show Processing
  $td.append($table.data('spinner'))

      $table = $(this).closest('table')

      $actions = $table.children('thead').find('th.col-actions')
      $actions.children('svg').remove()
      $actions.children('a').fadeIn()

      $table.closest('.dataTables_wrapper').removeClass('effective-datatables-inline-expanded')
      $(this).remove()
