anchor.diff:          init_options['lengthMenu'] = [-1] # Show all results
           init_options['dom'] = "<'row'r>t" # Just show the table
   
  -      # Initialize Filtering
  -      dataTableSearch = (event) ->
  +      # Initialize Searching
  +      dataTableSearch = (event) ->   # This is the function called by a select or input to run the search
           obj = $(event.currentTarget)
  -        dataTable = obj.closest('table.dataTable').DataTable()
  -        dataTable.column(obj.data('index') || 0).search(obj.val()).draw()
  +        table = obj.closest('table.dataTable')
   
  -      search_inputs = datatable.find('thead').first().find('input,select')
  +        if table.parent().hasClass('dataTables_scrollHeadInner') # ScrollX support
  +          table = table.closest('.dataTables_scroll').children('.dataTables_scrollBody').children('table.dataTable')
  +        table.DataTable().column(obj.data('index') || 0).search(obj.val()).draw()
   
  -      search_inputs.each (index, input) ->
  +      # For every existing Input, Set up the search events
  +      (search_inputs = datatable.find('thead').first().find('input,select')).each (index, input) ->
           $input = $(input)
           $input.on 'click', (event) -> false # Dont order columns when you click inside the input
   
  
positive.code:           $input.keyup($.debounce(300, dataTableSearch))
  
        # Let's actually initialize the table now
        console.log "OPTIONS"
        console.log init_options
        table = datatable.dataTable(init_options)
  
        # Assign PreSearch columns
        search_inputs.each (index, input) =>
          $input = $(input)
          if $input.val()
            table.fnSettings().aoPreSearchCols[$input.data('index')].sSearch = $input.val()
  
        # fixedColumns = new $.fn.dataTable.FixedColumns(table,
        #  leftColumns: 2
  
negative.code:         processing: true
          deferRender: true
          serverSide: true
          scrollX: true
          #scrollY: '300px'
          scrollCollapse: true
          deferLoading: [datatable.data('display-records'), datatable.data('total-records')] #fixedColumns won't work with deferLoading
          pagingType: 'simple_numbers'
          lengthMenu: [[10, 25, 50, 100, 250, 1000, -1], [10, 25, 50, 100, 250, 1000, 'All']]
          iDisplayLength: datatable.data('default-entries')
  