             @$('.help-block').hide()
             @$('.range-from').datepicker({'autoclose': true})
             @$('.range-to').datepicker({'autoclose': true})
-            
+
             @set(@context)
 
         toggleHelpText: (event) ->

                operator = if @isBetweenSelected() then 'lte' else 'gte'
            else
                operator = if @isBetweenSelected() then 'range' else '-range'
          
            return operator

        getValue: ->


            to_text = @$('.range-to').val()
            to_date = @$('.range-to').data('datepicker').getFormattedDate()

            value = []

            if from_text != "" and to_text != ""
                value = [from_date, to_date]
            else if from_text != ""
