         else
       @valueDateUpdate event
       console.log "visual"
+      return
 
     valueDateUpdate: (event) ->
       console.log event.type

          @$el.show()
        else
          @$el.show()
  
  class SearchFormView extends Backbone.View
    el: "#page"
    render: (options) ->
      that = @
      templated = _.template($("#breadcrumb-template").html(),
        breadcrumbs: [
          title: "Search"
          url: "/search"
         ]
      )
      $("#breadcrumb").html templated

      require [ "text!../templates/search.html.tpl" ], (template) ->
        that.$el.html _.template(template)

      countries = new Countries()
      console.log "fetch countries"
      #fetch the countries collection with an ajax call
      countries.fetch
        dataType: "jsonp"
        data: []
        success: (countries) ->
          console.log "countries: ", countries
        error: (response) ->
          console.log response
        reset: true

    events:
      "click div[id^=search-] label.btn": "visualDateUpdate"


          
          # render the person partial 
          require ["text!../templates/view_details.html.tpl"], (template) ->
            $("#person-details").html _.template(template,
              person: person
            )
            return

          
          # now we have a name, add this to the breadcrumb
