 
         preventDefault: (event) ->
             event.preventDefault()
+
+        showControls: (event) ->
+            @$controls.fadeTo 200, 1
+
+        hideControls: (event) ->
+            @$controls.fadeTo 400, 0.3
+
+        toggleControls: (event) ->
+            if NEGATION_OPERATORS[@$operator.val()]
+                @$exclude.prop 'disabled', false
+            else
+                @$exclude.prop 'disabled', true
 
         getValue: (options) ->
             @$value.val()

        initialize: (options) ->
            @options = options

            # Subscribe to edits for nodes relating to this DataField
            mediator.subscribe "datafield/#{ @model.id }/edit", (node) =>
                if node is @node then return
                @set(node)


            @$value2 = @$('[name=value-2]').hide()

        getValue: ->
            value = parseFloat @$value.val()
            if /range/.test @getOperator()
                value2 = parseFloat @$value2.val()
                [value, value2]
            else
                value

        setValue: (value) ->
            if /range/.test @getOperator()
                @$value.val value[0]
                @$value2.val value[1]
            else
