     if FromServer.advanced? && FromServer.advanced.length > 0
       @toggleAdvanced()
       @readQuery(FromServer.advanced)
-
-    @on 'custom-date-keydown', (ev) =>
-      if ev.original.keyCode == 13
-        ev.original.preventDefault()
-        customDateSubmit()
-
-    @on 'custom-date-submit', (ev) =>
-      customDateSubmit()
 
     engine = new Bloodhound(
       datumTokenizer: ((d) -> Bloodhound.tokenizers.whitespace(d.uid))

    'change #order': 'compileQuery'
    'click #submitCustomDate': 'changeCustomDate'

  psplit: (query) ->
    split = []
    depth = 0

      if finish.isValid() then range += finish.format('YYYY-MM-DD')
      range

  compileQuery: ->
    query = []

