                 value = to_date
             # If both fields are emtpy, return null to invalidate this range
             else
-                value = null 
-             
+                value = null
+
             return value
 
         setOperator: (operator) ->


            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 != ""

            @$('.help-block').hide()
            @$('.range-from').datepicker({'autoclose': true})
            @$('.range-to').datepicker({'autoclose': true})

            @set(@context)

        toggleHelpText: (event) ->
