$("#list_geofence_modal").remove();
$(".dinamic-content").append('<%= escape_javascript(render partial: 'list_assign_to_devices') %>');
$("#list_geofence_modal").modal({backdrop: 'static', keyboard: false})

var filtersConfig = {
  // instruct TableFilter location to import ressources from
  base_path: 'https://unpkg.com/tablefilter@0.6.102/dist/tablefilter/',
  highlight_keywords: true,
  alternate_rows: true,
  rows_counter: true,
  btn_reset: true,
  status_bar: true,
  popup_filters: true,
  paging: {
      length: 10
  },
  enable_empty_option: true,
  enable_non_empty_option: true,
  auto_filter: {
      delay: 1100 //milliseconds
  },
  // theme
  themes: [{ name: 'default' }],
  col_widths:[
      '60px'
  ],
  extensions: [{ name: 'sort' }]
};
var cda = new TableFilter('content-devise-assign', filtersConfig);
cda.init();
