             return @model.id
 
         getOperator: ->
-            from = @$('.range-from').val()
-            to = @$('.range-to').val()
+            from = @ui.lowerBound.val()
+            to = @ui.upperBound.val()
             operator = ''
 
             if from != "" and to != ""

        initialize: (options) ->
            @model = options.model

        ui:
            inOutSelect: '.btn-select'

        onRender: ->
            @inOutSelect = new button.ButtonSelect

            switch @operator
                when 'range', '-range'
                    if value[0]?
                        @ui.lowerBound.val(value[0])
                    else
                        @ui.lowerBound.val('')
                    if value[1]?
                        @ui.upperBound.val(value[1])
                    else
                        @ui.upperBound.val('')
                when 'gte'
                    @ui.lowerBound.val(value)
                when 'lte'
                    @ui.upperBound.val(value)

    { NumberControl }
