anchor.diff:        column_type = selected.data('type')
   
         base_id = target.attr('id').slice(0, -8)
  -      predicate_select  = this.element.find('select#' + base_id + 'p')
  -      predicate_select2 = this.element.find('#s2id_' + base_id + 'p')
  +      predicate_select  = @element.find('select#' + base_id + 'p')
  +      predicate_select2 = @element.find('#s2id_' + base_id + 'p')
         query_input = $('input#' + base_id + "v_0_value")
   
         # Initialize datepicker if column is date/datetime/time
  -      $.proxy(this.init_datetimepicker, this)(base_id)
  -
  +      $.proxy(@init_datetimepicker, this)(base_id)
  +
  +      # Handle association columns with AJAX autocomplete
         if selected.data('ajax-url') and Select2?
           controller = selected.data('controller')
   
  
positive.code:               obj
              results: (data, page) ->
                {results: $.map(data, (text, id) -> {id: id, text: text}) }
        else
          predicate_select2.show()
          # If Select2 is on query input, remove and set defaults
          if query_select2 = this.element.find('#s2id_' + base_id + 'v_0_value')
            query_input.select2('destroy')
            query_input.val('')
            previous_val = ''
  
negative.code:               else
                  $(object.element).parent().attr('label') + ': ' + object.text
  
      init_datetimepicker: (base_id) ->
        if $.ui?.timepicker?
          query_input = @element.find('input#' + base_id + "v_0_value")
          selected_attr = @element.find('select#' + base_id + 'a_0_name option:selected')
  
          # Clear any datepicker from query input first
          query_input.datepicker('destroy')
  